diff --git a/CHANGELOG.md b/CHANGELOG.md index c096fe4ff..88f458118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,11 +12,27 @@ It("is interruptible", func(ctx SpecContext) { // or context.Context instead of _, err := http.DefaultClient.Do(req) Expect(err).NotTo(HaveOccured()) - Expect(client.WidgetCount(ctx)).To(Equal(17)) + Eventually(client.WidgetCount).WithContext(ctx).Should(Equal(17)) }, NodeTimeout(time.Second*20), GracePeriod(5*time.Second)) ``` -and have Ginkgo ensure that the node completes before the timeout elapses. If it does elapse, or if an external interrupt is received (e.g. `^C`) then Ginkgo will cancel the context and wait for the Grace Period for the node to exit. +and have Ginkgo ensure that the node completes before the timeout elapses. If it does elapse, or if an external interrupt is received (e.g. `^C`) then Ginkgo will cancel the context and wait for the Grace Period for the node to exit before proceeding with any cleanup nodes associated with the spec. The `ctx` provided by Ginkgo can also be passed down to Gomega's `Eventually` to have all assertions within the node governed by a single deadline. + +### Features + +- Ginkgo now records any additional failures that occur during the cleanup of a failed spec. In prior versions this information was quietly discarded, but the introduction of a more rigorous approach to timeouts and interruptions allows Ginkgo to better track subsequent failures. +- `SpecContext` also provides a mechanism for third-party libraries to provide additional information when a Progress Report is generated. Gomega uses this to provide the current state of an `Eventually().WithContext()` assertion when a Progress Report is requested. +- DescribeTable now exits with an error if it is not passed any Entries [a4c9865] + +## Fixes +- fixes crashes on newer Ruby 3 installations by upgrading github-pages gem dependency [92c88d5] +- Make the outline command able to use the DSL import [1be2427] + +## Maintenance +- chore(docs): delete no meaning d [57c373c] +- chore(docs): Fix hyperlinks [30526d5] +- chore(docs): fix code blocks without language settings [cf611c4] +- fix intra-doc link [b541bcb] ## 2.2.0 diff --git a/types/version.go b/types/version.go index 3974fdc26..9711fe352 100644 --- a/types/version.go +++ b/types/version.go @@ -1,3 +1,3 @@ package types -const VERSION = "2.2.0" +const VERSION = "2.3.0"