Repository navigation
v8.6.0 #3529
novemberborn
started this conversation in
General
v8.6.0
#3529
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Support setup-function teardowns and disposable resources
By @novemberborn in #3524
Extends
t.teardown()to accept (async) disposables.Allows
t.teardown()to be used inbeforeandbeforeEachsetup functions. The teardowns are invoked after the corresponding test postconditions, including.alwaysvariants.For these teardowns, the execution context
tof the setup function is rebound to the teardown invocation. This means assertions, logs, plans and timeouts affect the teardown rather than the completed setup function.afterandafterEachare now presented as postconditions. Any resources created during setup (beforeandbeforeEach) should be cleaned up using a teardown, not a postcondition.And a teardown using
t:The
HookSkipFnis deprecated in favor ofLifecycleSkipFn.Other Changes
Full Changelog: v8.5.0...v8.6.0
This discussion was created from the release v8.6.0.
All reactions