Repository navigation
Releases
Releases · onsi/ginkgo
v2.34.0
Features
DeferOnFailureregisters a callback that runs only when a spec fails - as soon as the failing node returns and before any teardown (JustAfterEach,AfterEach,AfterAll,DeferCleanup) - so it can capture the state teardown is about to destroy. It takes exactly whatDeferCleanuptakes and shares its scoping: called inBeforeEach/JustBeforeEach/Itit covers the spec, inBeforeAllthe ordered container, and inBeforeSuitethe whole suite. It is also available onGinkgoT(); note that this adds a method toFullGinkgoTInterface, so hand-written implementations of that interface need to add it. See https://onsi.github.io/ginkgo/#capturing-failure-state-deferonfailure
Fixes
- Progress reporters (
AttachProgressReporter) are no longer called while Ginkgo holds an internal lock, so a reporter that callsCurrentSpecReport()orAddReportEntry()no longer stalls for 5 seconds and has its output dropped. --sleep-on-failurenow runs after anyDeferOnFailurecallbacks, also pauses when a spec times out, and no longer pauses if the suite has already been interrupted.
v2.33.1
Fixes
- Add several missing fields to spec report JSON output.
v2.33.0
Features
- The JUnit reporter now records each spec's
ReportEntrys as<properties>on its<testcase>element, with the entry's name and its JSON-encoded value. Thanks @pohly! [23db51a]
Maintenance
- Releases are now cut by a GitHub Actions workflow (Actions -> Release -> Run workflow) rather than by hand, with changelog entries collected under
## Unreleasedas the work happens. See RELEASING.md. [8616ecb]
v2.32.2
v2.32.1
v2.32.0
v2.31.0
v2.30.0
2.30.0
Features
Ginkgo now allows extentions/global.Reset to support running multiple suites from within a single process. This may take some massaging on your part (see 1672) but can dramatically speed up codebases with O(hundreds) of test suites.
Thanks @lawrencejones !
Fixes
- Fix nested --github-output group for progress report nested inside timeline [4f62d7a]
v2.29.0
2.29.0
GinkgoHelperGo makes it easier to write test helpers that need to run in goroutines. Specifically, it makes managing the failure state and capturing failure panics correctly straightforward.
ginkgo outline now includes entries defined in DescribeTableSubtree