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
I have a .NET 6.0 console project which references NUnit.Engine 3.14.0 and NUnit.Extension.NUnitV2Driver 3.9.0. When I try to run NUnit2 tests from test assembly (targeting .NET Framework 4.8, referencing NUnit 2.6.4), I get the following result:
Either assembly contains no tests or proper test driver has not been found.
According to the documentation, V2 Framework Driver should be used automatically if installed. Am I missing something?
Please find attached solution which can be used to reproduce the issue. NUnit3_Repro.zip
The text was updated successfully, but these errors were encountered:
The driver is being referenced by your project rather than being installed as an engine extension. Normally extensions are not referenced in this way. I recognize that you may be using the reference simply to get the extension to be copied to the correct directory, however.
Your project is targeting .NET 6.0, the engine reference pulls in the a .NET Core version of the engine. The extension, OTOH, targets the .NET 2.0 framework. So even if it is installed in the correct place, it cannot be loaded.
The extension works for various runners, which target versions of the .NET Framework. It has never been ported to .NET Standard or Core, because the existing runners don't need it.
There's an open question as to whether we'll continue to support V2 tests in future versions (4.x) or the engine. I'll go ahead and create a new issue to address that.
I'm closing this as "Not a bug" but if you disagree or have more comments, you can still post them hear and I'll respond.
Hey there,
I have a .NET 6.0 console project which references NUnit.Engine 3.14.0 and NUnit.Extension.NUnitV2Driver 3.9.0. When I try to run NUnit2 tests from test assembly (targeting .NET Framework 4.8, referencing NUnit 2.6.4), I get the following result:
Either assembly contains no tests or proper test driver has not been found.
According to the documentation, V2 Framework Driver should be used automatically if installed. Am I missing something?
Please find attached solution which can be used to reproduce the issue.
NUnit3_Repro.zip
The text was updated successfully, but these errors were encountered: