Pester
Pester copied to clipboard
Skip blocks without runnable tests
PR Summary
Mark blocks (incl. container root) as Skip when no child tests will run. This is done to avoid running BeforeAll/AfterAll when it's not needed.
Fix #2439 Fix #2449
PR Checklist
- [x] PR has meaningful title
- [x] Summary describes changes
- [x] PR is ready to be merged
- If not, use the arrow next to
Create Pull Requestto mark it as a draft. PR can be markedReady for reviewwhen it's ready.
- If not, use the arrow next to
- [x] Tests are added/update (if required)
- [ ] Documentation is updated/added (if required)
Ready for review, but merge pending updated base branch for v6
@nohwnd Target this for 5.6.0 instead or wait? I'm fine with both, but shouldn't be a breaking change.