Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Print out warning in verbose & mini reporter when `--fail-fast` is enabled #1160
This PR fixes #1134. If --fail-fast is enabled it will print out the following message at the end of the report for both mini and verbose.
This works for now, but i´m not sure if the way I have done it is the best.
I have been thinking that maybe instead of going through all the results in run-status looking for a stat element that has failFastEnabled=true.
It might be better to send a event or something if the Runner is created with the fail-fast option enabled. Then run-status could pickup on this and just set:
Let me know what you guys think!
Also i appreciate the support in the issue section helping me out with this :)
You should pass the
It'd be nice though if this wouldn't report when it knows no other tests didn't run. Which brings us back to the test counting logic.
Thats a much better solution than what i did. Thanks, I'll try and make that change.
You mentioned in the issue that it was probably hard or at least not a guarantee that we could determine the total amount of test to be run by the time failure occurred? So probably out of my league to fix that at this time.
But maybe open that as a separate issue / feature request for after we can get this initial functionality in place?