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

Default test pattern is wrong for NUnitLite #23

Closed
CharliePoole opened this issue Aug 13, 2024 · 1 comment · Fixed by #26
Closed

Default test pattern is wrong for NUnitLite #23

CharliePoole opened this issue Aug 13, 2024 · 1 comment · Fixed by #26
Assignees
Labels
Bug Something isn't working
Milestone

Comments

@CharliePoole
Copy link
Member

CharliePoole commented Aug 13, 2024

If both the unitTests and unitTestRunner arguments to BuildSettings.Initialize are omitted, the first defaults to **/*.tests.dll|**/*.tests.exe (case insensitive) and an instance of NUnitLiteRunner is used for the second.

This causes an error if both are omitted because NUnitLite expects an exe. The same error occurs if NUnitLite is actually specified but the unitTests pattern is omitted.

In both cases, we should attempt to run only executables.

As a workaround, until this is corrected, a pattern ending in ".exe" must be specified for NUnitLite.

@CharliePoole CharliePoole added the Bug Something isn't working label Aug 13, 2024
@CharliePoole CharliePoole added this to the 1.2.0 milestone Sep 9, 2024
@CharliePoole CharliePoole self-assigned this Sep 11, 2024
@CharliePoole
Copy link
Member Author

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant