-
Notifications
You must be signed in to change notification settings - Fork 219
New --set-exit-if-fail
option
#2162
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
Comments
If I understand the request correctly, you should be able to get this behavior today with Does |
Yes it does, so I have some suggestions on the
|
Sorry if I wasn't clear enough with my doubt. Is it intended that I see no difference in running I ran the tests for this project: https://github.com/fmorschel/due_date/ in the main branch. If you go to
In line 6 (just above the first group), then on the vsCode Testing tab and click to run all, everything runs with no problem besides that exact test. Now, when I run the commands mentioned above, they stop at that intentionally failing test, no difference between the options. |
It was omitted intentionally since we didn't expect it to have uses outside of our infra.
No other tests running is expected with
If you are running with
I would expect a different number of tests to run between |
Towards #2162 Unhide the silent reporter. This was originally introduced hidden because we expected it to only be useful for our own CI infrastructure, since a failure without any output cannot be investigated - it must be reproduced in a separate run to even find which test case failed. We now have an external request for failing without any output on stdio and there is no strong reason to keep the silent reporter hidden. Remove the support for hidden reporters entirely - it can easily be reintroduced if we have another reporter which isn't user facing. Expand the reporter description. Break a long description string into a adjacent literals to avoid lines over 80 columns.
Running
|
Filtering down the output to the most relevant line:
The |
I see. Sorry I missed those lines. Since both results were basically the same size I missed that those lines had different numbers. That is almost what I asked at #2161 as well. I'll use this for now. Thank you a lot for your time and help! |
Towards #2162 Unhide the silent reporter. This was originally introduced hidden because we expected it to only be useful for our own CI infrastructure, since a failure without any output cannot be investigated - it must be reproduced in a separate run to even find which test case failed. We now have an external request for failing without any output on stdio and there is no strong reason to keep the silent reporter hidden. Remove the support for hidden reporters entirely - it can easily be reintroduced if we have another reporter which isn't user facing. Expand the reporter description. Break a long description string into a adjacent literals to avoid lines over 80 columns.
I'd like to propose a
--set-exit-if-fail
option for thedart test
.The name is coming from the
dart format
that already has an--set-exit-if-changed
option.This option would simply exit if any test fails. My use case for this would be running it inside a git hook, where I simply want to warn the development team if any test fails so they can run all and fix what is needed.
If #2161 could be accomplished as well or similar issues, it would be really helpful to only show the exact test that failed first, no need for all the rest.
The text was updated successfully, but these errors were encountered: