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

Command Line Options - Set Defaults? e.g. minimum-expected-tests #3144

Closed
msm-tomlonghurst opened this issue Jun 21, 2024 · 0 comments
Closed

Comments

@msm-tomlonghurst
Copy link
Contributor

The Microsoft.Testing.Platform hosts provides us a few bits out of the box, such as minimum-expected-tests.

Is there the ability for me within my framework to set a default value for a flag (that the user could then override?)

Currently, if I execute a test run that doesn't run any tests, the command doesn't return an exit code.

I'd like to change this, so setting a default value of 1.

PS C:\git\TUnit\TUnit.TestProject> dotnet run --treenode-filter "/*/*/*/NonExistingTest"
.NET Testing Platform v1.3.0-preview.24321.4+a25e08a44c (UTC 06/21/2024 00:00:00) [win10-x64 - .NET 7.0.20]
Zero tests ran - Failed: 0, Passed: 0, Skipped: 0, Total: 0, Duration: 149ms - TUnit.TestProject.dll (win10-x64 - .NET 7.0.20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant