-
Notifications
You must be signed in to change notification settings - Fork 113
Ensure that a CustomExecutionTrait
's teardown logic occurs _after_ nested tests run.
#526
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
Ensure that a CustomExecutionTrait
's teardown logic occurs _after_ nested tests run.
#526
Conversation
…nested tests run. This PR reorders operations in `Runner` such that a test with a custom execution trait will execute operations in this order: 1. Custom execution trait "before" logic; 1. Test logic; 1. Child test logic; and finally 1. Custom execution trait "after" logic. There is currently a bug here where child test logic runs _after_ the custom execution trait runs its "after" logic, which is not intentional. Resolves rdar://125115497.
CustomExecutionTrait
's teardown logic occurs _after_ …CustomExecutionTrait
's teardown logic occurs _after_ nested tests run.
@swift-ci please test |
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.
Thank you Jonathan! That looks great!
@swift-ci please test |
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.
LGTM thanks, pending that stray print
removal
@swift-ci please test |
30613ff
to
4fa783e
Compare
@swift-ci please test |
This PR reorders operations in
Runner
such that a test with a custom execution trait will execute operations in this order:There is currently a bug here where child test logic runs after the custom execution trait runs its "after" logic, which is not intentional.
Resolves rdar://125115497.
Checklist: