Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUnit.Console 3.17.0 and lower does not work with NUnit version 4.1.0 #1441

Closed
Moshex opened this issue Jul 11, 2024 · 11 comments
Closed

NUnit.Console 3.17.0 and lower does not work with NUnit version 4.1.0 #1441

Moshex opened this issue Jul 11, 2024 · 11 comments
Assignees
Labels
Milestone

Comments

@Moshex
Copy link

Moshex commented Jul 11, 2024

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?

@CharliePoole
Copy link
Collaborator

All version 3.16 releases have been marked on GitHub as deprecated. Try either 3.15.5 or 3.17.0 and let us know if the problem persists. Even better, try the latest dev build of 3.18.0 from our MyGet feed.

@Moshex
Copy link
Author

Moshex commented Jul 12, 2024

Thank you for your reply!
With regards to versions 3.15.X and version 3.17.0, I am not able to use those versions at all due to this bug:
#1387 (comment)

Do you happen to know if this issue is fixed in version 3.18.0?

also to make sure I have the right branch could you give me a link to the repo that you would like me to test to see if this issue is no longer present?

@CharliePoole
Copy link
Collaborator

The feed is here: https://www.myget.org/feed/nunit/package/nuget/NUnit.ConsoleRunner Pick the latest 3.18 dev build (not 4.0). Issue #`1387 hasn't had any work done on it as far as I can see, I'll take a look at it for 3.18.0.

@Moshex
Copy link
Author

Moshex commented Jul 15, 2024

@CharliePoole
I tested this version https://www.myget.org/feed/nunit/package/nuget/NUnit.ConsoleRunner/3.18.0-dev00068
and per my testing it fixes both issues, do you know when a prod release of this version will come out?

@Moshex Moshex changed the title NUnit.Console does not work with NUnit version 4.1.0 NUnit.Console 3.17.0 and lower does not work with NUnit version 4.1.0 Jul 15, 2024
@CharliePoole
Copy link
Collaborator

@Moshex Trying for this week as I'll have family visiting for the following two weeks.

@CharliePoole CharliePoole self-assigned this Jul 15, 2024
@CharliePoole CharliePoole added this to the 3.18.0 milestone Jul 15, 2024
@Moshex
Copy link
Author

Moshex commented Jul 15, 2024

Thank you so much please keep me updated!

@Moshex
Copy link
Author

Moshex commented Jul 16, 2024

@CharliePoole is there a prod release of 3.18.0?

@CharliePoole
Copy link
Collaborator

As I said, I'm trying for this week. FYI, issues close when the fix makes it into the main branch.

@Moshex
Copy link
Author

Moshex commented Jul 17, 2024

I see the new update thank you so much for all your heard work!

@CharliePoole
Copy link
Collaborator

If you plan to use the dotnet tool version, there's a critical bug which will require a 3.18.1 release.

@CharliePoole
Copy link
Collaborator

@Moshex The 3.18.1 release is now published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants