Closed thomhurst closed 3 months ago
Hi @tomhurst,
I am not sure to understand what you are saying.
By default, the platform expects to have at least 1 test run, failure to do so will result in exit code 8 (https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-platform-exit-codes) with the message Zero tests ran
that you are seeing.
Do you mean you want to allow 0
?
Ah sorry I could've sworn I printed out the exit code and it was 0. But it was actually 8. This is a non issue.
Glad to see there is no issue here.
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 error exit code. But I want to interpret that as "something went wrong".
I'd like to change this, so setting a default value of
1
.