visualstudio.xunit
visualstudio.xunit copied to clipboard
Cannot run XUnit Tests in non-English VS with xunit.runner.visualstudio 2.4.3
Steps to reproduce: Prepare ENU(English) OS, install VS language packs(Turkish, Chinese) and apply
1.Create a class library(FX 4.8) 2.Add NuGet package reference to xunit, xunit.runner.visualstudio (test adapter) 3.Add code in code editor
[Fact]
public void TestMethod1()
{
Assert.Equal(1, 1);
}
This is the settings in csproj file:
- Run Test
Expected Result: Test should run passed in TE
Actual Result: Test cannot be discovered
Image:
Note:
-
It's not repro on English VS
-
When downgrade
xunit.runner.visualstudio
from version 2.4.3 to 2.4.1, it works, looks like a regression
Repros on Russial language for me as well. Please fix ASAP
I had a problem in my environment that may have the same cause.
In my case, when Visual Studio version 17.3.x, xunit.runner.visualstudio
version 2.4.3 had no problem.
Immediately after updating Visual Studio to 17.4, tests for test projects with .NET Frawmework selected as the target framework cannot be run from the TestExplorer.
This problem is resolved by lowering the version of xunit.runner.visualstudio
to 2.4.1.
My OS and Visual Studio language is Japanese.
I've observed the same issue on a german installation. A rollback to 2.4.1 solved the issue.
Can confirm that this regression (which cost me 2 days of tearing out my hair) happens with VS 2022 17.4.0 German. Going back to 2.4.1 made VS run the tests again.
Is this still reproducible on version 2.4.5?
For my part, I can no longer reproduce the problem. Neither with version 2.4.5, nor with previous versions.
Thanks, I'll close the issue then.