You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title might be a bit confusing, but to boil it down I have two xunit tests; one is named Catches_Rate_Limit, the other is named Catches_Rate_Limit_With_Base_Exception. When I click the run test button on Catches_Rate_Limit, OmniSharp actually runs the Catches_Rate_Limit_With_Base_Exception test.
Environment data
dotnet --info output:
.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Windows
OS Version: 10.0.16170
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.1
VS Code version: 1.11.1
C# Extension version: 1.9.0
Steps to reproduce
Create a new xunit test project: dotnet new xunit
Create three tests. Name the first TestFoo, the second RandomTest, and the third TestFooBar:
publicclassUnitTest1{[Fact]publicvoidTestFoo(){
Assert.True(false,$"{nameof(TestFoo)} was run.");}[Fact]publicvoidRandomTest(){
Assert.True(false,$"{nameof(RandomTest)} was run.");}[Fact]publicvoidTestFooBar(){
Assert.True(false,$"{nameof(TestFooBar)} was run.");}}
Click the run test button on TestFoo.
Expected behavior
VSCode should run the TestFoo test.
Actual behavior
VSCode runs both the TestFoo and TestFooBar tests and outputs this:
Both the TestFoo and TestFooBar tests were run – something I wasn't able to reproduce in my original project where only the Catches_Rate_Limit_With_Base_Exception test would run.
The RandomTest test did not run at all, as expected.
The text was updated successfully, but these errors were encountered:
Great, at least it was easy to pinpoint! I'd offer to help with a pull request, but I've only just started using Xunit and I don't know how the theories work yet. I'm not sure how they'd best be handled.
Title might be a bit confusing, but to boil it down I have two xunit tests; one is named
Catches_Rate_Limit
, the other is namedCatches_Rate_Limit_With_Base_Exception
. When I click therun test
button onCatches_Rate_Limit
, OmniSharp actually runs theCatches_Rate_Limit_With_Base_Exception
test.Environment data
dotnet --info
output:VS Code version:
1.11.1
C# Extension version:
1.9.0
Steps to reproduce
Create a new xunit test project:
dotnet new xunit
Create three tests. Name the first
TestFoo
, the secondRandomTest
, and the thirdTestFooBar
:run test
button onTestFoo
.Expected behavior
VSCode should run the
TestFoo
test.Actual behavior
VSCode runs both the
TestFoo
andTestFooBar
tests and outputs this:Both the
TestFoo
andTestFooBar
tests were run – something I wasn't able to reproduce in my original project where only theCatches_Rate_Limit_With_Base_Exception
test would run.The
RandomTest
test did not run at all, as expected.The text was updated successfully, but these errors were encountered: