nunit3-vs-adapter
nunit3-vs-adapter copied to clipboard
Tests with some characters in the name do not work very well
-
NUnit and NUnit3TestAdapter versions
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="NUnit" Version="3.12.0" />
-
Visual Studio edition and full version number (see Help About) Microsoft Visual Studio Professional 2019 Version 16.5.4
-
A short repro, preferably attached or pointing to a git repo or gist https://gist.github.com/appel1/579d8a44a9768e9e6e5cf93c57e5d502
-
What .net platform and version is being targeted
<TargetFrameworks>net452;net472</TargetFrameworks>
The test cases show up but you can't run a specific test or all tests for that test method.
They are executed though if you run the whole project or fixture. But the test explorer do not show them as completed.
@appel1 Unfortunately true.....
This is the FQN issue, which is being worked on, but no real fix yet.
Workarounds:
1.
You can try to enable the new FQN code, which is more compatible with the FQN (and RTD) of the Test Explorer. Enable these two in a runsettings file: https://github.com/nunit/docs/wiki/Tips-And-Tricks#UseParentFQNForParametrizedTests and https://github.com/nunit/docs/wiki/Tips-And-Tricks#UseNUnitIdforTestCaseId.
A sideeffect of this is that you can not select single test cases, only the parent test method.
Turn off RTD (Real Time Discovery) in Test Explorer (Go to options/Tests in VS). It may help.
With version VS 16.11.3 I now see that all characters in your test except the unicode characters works.
The unicode issue is covered by #761 and #727.
Repro solution for this issue, and also with the other character issues is here https://github.com/nunit/nunit3-vs-adapter.issues/tree/master/Issue711