-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Description
When I run my NUnit.Console command with NUnit version 3.14.0 my tests run just fine with this command.
This is the command:
mono ../../../.nuget/packages/NUnit.ConsoleRunner/3.16.3/tools/nunit3-console.exe --labels=Before --out=TestResult.txt "--result=TestResult.xml;format=nunit2" ./UITests.csproj --trace=Verbose;
NUnit Console 3.16.3 (Release)
Copyright (c) 2022 Charlie Poole, Rob Prouse
Thursday, July 11, 2024 2:25:36 PM
Runtime Environment
OS Version: MacOSX 23.5.0.0
Runtime: .NET Framework CLR v4.0.30319.42000
Test Files
./UITests.csproj
When I run my NUnit.Console command with NUnit version 4.1.0 my tests do not run with the same command.
This is the command:
mono ../../../.nuget/packages/NUnit.ConsoleRunner/3.16.3/tools/nunit3-console.exe --labels=Before --out=TestResult.txt "--result=TestResult.xml;format=nunit2" ./UITests.csproj --trace=Verbose;
This is the error:
NUnit Console 3.16.3 (Release)
Copyright (c) 2022 Charlie Poole, Rob Prouse
Thursday, July 11, 2024 2:27:06 PM
Runtime Environment
OS Version: MacOSX 23.5.0.0
Runtime: .NET Framework CLR v4.0.30319.42000
Test Files
./UITests.csproj
Errors, Failures and Warnings
1) Invalid : /Users/{username}/Documents/UITests/UITests/bin/Debug/net6.0/UITests.dll
No suitable tests found in ' /Users/{username}/Documents/UITests/UITests/bin/Debug/net6.0/UITests.dll'.
Either assembly contains no tests or proper test driver has not been found.
Test Run Summary
Overall result: Failed
Test Count: 0, Passed: 0, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0
Start time: 2024-07-11 20:27:06Z
End time: 2024-07-11 20:27:06Z
Duration: 0.282 seconds
Results (nunit2) saved as TestResult.xml
is there something I need to do to get NUnit.Console to work with NUnit version 4.1.0?