Pester icon indicating copy to clipboard operation
Pester copied to clipboard

Skip blocks without runnable tests

Open fflaten opened this issue 1 year ago • 2 comments

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 Request to mark it as a draft. PR can be marked Ready for review when it's ready.
  • [x] Tests are added/update (if required)
  • [ ] Documentation is updated/added (if required)

fflaten avatar May 08 '24 23:05 fflaten

Ready for review, but merge pending updated base branch for v6

fflaten avatar May 13 '24 21:05 fflaten

@nohwnd Target this for 5.6.0 instead or wait? I'm fine with both, but shouldn't be a breaking change.

fflaten avatar May 15 '24 06:05 fflaten