nunit / nunit3-vs-adapter

NUnit 3.0 Visual Studio test adapter for use under VS 2012 or later
https://nunit.org
MIT License
205 stars 106 forks source link

When I run NUnit tests in VSTest in the pipeline it goes ok, but when I want to rerun failed once there is a filter from MSTest "ClassName" #1202

Open Misieqj opened 3 months ago

Misieqj commented 3 months ago

Issue description

When I run tests in Azure DevOps VSTest in pipeline all tests are ok. But when I want to set rerun of failed tests in the same VSTest task there is info: No test matches the given testcase filter. When I checked filter details there is filter syntax of MSTest with ClassName

Preview of VSTest task input:

Details of first run from the pipeline:

Details of rerun from the pipeline when FailedTestName failed in a first run:

Any ideas why?

stevenaw commented 3 months ago

Thanks for raising this @Misieqj I'm not 100% certain, but this could also be related to a framework filtering issue we've fixed for the upcoming NUnit 4.2 release. There is a preview available on MyGet. Could you see if upgrading to that helps solve your issue?

The package itself can be found here: https://www.myget.org/feed/nunit/package/nuget/NUnit With instructions on how to to add the feed here: https://docs.nunit.org/articles/nunit/Towards-NUnit4.html#myget

stevenaw commented 3 months ago

The issue I suspect you could be hitting is https://github.com/nunit/nunit/issues/4651

Misieqj commented 3 months ago

I will stay in this thread with the answer because it is related to the filter after rerun tests.

Thx @stevenaw for those tips, I tried with NUnit 3.14.0 and also 4.2 alpha but still in the tests rerun a filter not changed No test matches the given testcase filter "(ClassName=...&Name=...)"