-
-
Notifications
You must be signed in to change notification settings - Fork 477
Added Run.SkipRemainingOnFailure option #2023
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
Conversation
6495dbd
to
034dbd7
Compare
034dbd7
to
6a650d4
Compare
This should be ready for review. I've attached screenshots in the PR description to show behaviour of the different options. Let me know if I've interpreted something incorrectly 👍 . Also added a message to the skipped tests. Not sure if it adds too much noise, but seems useful to see why the tests were skipped. Perhaps It would be better to limit this to just one message at the bottom, instead of under every skipped test? It might also be too generic, and could probably also say which test failed instead of just |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start! Added some thoughts
4838243
to
25ac249
Compare
25ac249
to
598465f
Compare
…ariable across runs
I think this is ready for another review. Thanks @fflaten for reviewing this change up till now, really helpful feedback 🙂 . One of the conversations above regarding how to handle skipped messages has not been resolved, leaving this for the maintainer @nohwnd to comment on since we are not sure if a message should be included at the bottom for Detailed/Diagnostic view. Other than this, happy to hear more feedback for anything else that needs to be changed. |
@ArmaanMcleod sorry I am slammed with work, and don't have any time for Pester nowadays. I will review as soon as I can. |
@nohwnd No worries 🙂. I am also getting slammed at work. Must be that busy time of year again 😄 |
@ArmaanMcleod I think adding a message to the bottom of detailed + diag output would be nice. Much like when a block fails there is summary at the bottom. We can change the behavior later as we learn how useful or tragically oververbose (like my original filter output in diag) it is. |
LGTM. |
PR Summary
Fix #360
I've added a
Run.SkipRemainingOnFailure
option. The following scopes are supported:Block -> Skip all remaining tests in current block(including child tests) after a failed test.
Container -> Skip all remainng tests in the container(file or scriptblock) after a failed test.
Run -> Skip all tests across all containers in a run after a failed test.
None -> default, keep original behaviour.
Sample Test 1
Sample Test 2
Setup code
Block
Container
Run
PR Checklist
Create Pull Request
to mark it as a draft. PR can be markedReady for review
when it's ready.