NUnit 4.0.0 #4563
Replies: 5 comments 15 replies
-
I migrated my testcase to NUnit 4.0.0 and my own console agent to NUnit 4.0.0 and NUnit.Engine 3.15.5 (was using 3.16.4 before). Unfortunately, running the test using the local TestRunner does not work anymore. TestEngine.WorkDirectory = Path.GetDirectoryName(testFile);
TestPackage = new TestPackage(testFile);
TestRunner = TestEngine.GetRunner(TestPackage);
TestNodes = TestRunner.Explore(TestFilter.Empty); Gives the following: Do I do something wrong? |
Beta Was this translation helpful? Give feedback.
-
is there going to be a NUnit4TestAdapter? |
Beta Was this translation helpful? Give feedback.
-
A bit of a crossover issue, but I've upgraded to 4.0.0 (including using the analyzer to automatically port to the constraint model -- good stuff by the way -- it worked like a dream!). Now my ReSharper test runner comes up empty when scanning projects for tests. It finds none whatsoever. The built in VS test runner with NUnit3TestAdapter installed does find and successfully run all tests. It's just ReSharper that has an issue. Does anyone know if ReSharper is compatible with the new version? This post seems relevant, but I am well ahead of the fix version it indicates: nunit/nunit3-vs-adapter#846 |
Beta Was this translation helpful? Give feedback.
-
You're absolutely 100% correct! It doesn't work on version 2023.2, but that has just recently been fixed in 2023.3 which is in EAP now, hopefully soon released. PS: The issue you link to is for the adapter, which Resharper is ignoring actually, but that issue was fixed. The issue now is that Rider/REsharper doesnt support NUnit 4, because they have used an outdated engine as part of their solution. Now they have fixed that too, so either try the EAP or wait for the release of 2023.3 |
Beta Was this translation helpful? Give feedback.
-
I had the same issue. Rider 2023.3 has been released and now it works. |
Beta Was this translation helpful? Give feedback.
-
See release notes
and
See migration guide
This discussion was created from the release NUnit 4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions