8000 Releases Β· onsi/ginkgo Β· GitHub
[go: up one dir, main page]

Skip to content
8000

Releases

v2.35.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:42

Features

  • InterceptSpecState(f) runs f and returns the types.SpecState and types.Failure that Skip, Fail (including failed assertions), or AbortSuite recorded while it ran, without applying them to the current spec. This makes it possible to unit-test helpers that wrap Skip and Fail. Every intercepted non-passing outcome is recorded on the spec as a report entry so it stays visible. See https://onsi.github.io/ginkgo/#testing-helpers-that-call-skip-or-fail Thanks @jghiloni for proposing it in #1693/#1694!

Fixes

  • At long last - 13 years since it launched - ginkgo -p now runs plain Go testing tests, Examples and fuzz seeds only on process 1, instead of once per process (which also duplicated an Example's output). When it compiles the suite the CLI asks the go command which test files are built, finds the Test function that calls RunSpecs - and records it in binaries built by ginkgo build - and passes --test.run=^TestEntry$ to processes 2..N. When the entrypoint can't be determined (RunSpecs behind a helper in a package with several Test functions or with a TestMain; a precompiled binary built with plain go test -c, or by ginkgo build while GOFLAGS sets -ldflags or with the pattern=args form of --ldflags) or you pass your own -test.run, -test.skip, -test.bench or -test.fuzz, nothing is filtered, as before. Set GINKGO_RUN_GO_TESTS_ON_ALL_PROCS to any non-empty value to disable the filtering. If processes 2..N were filtered and then report nothing, the suite now fails with an error that names the entrypoint and this variable.
  • The Ginkgo CLI now fails a parallel suite when some processes started the suite but the CLI times out waiting for all of them to report back, even if every process exited cleanly. A suite that no process ever began (e.g. it calls t.Skip before RunSpecs) still passes.
  • --no-color is now honored by the messages the CLI and test processes print outside the reporters - the parallel "timed out waiting for all parallel procs to report back" report, the deprecation report, and configuration, validation and failure-message errors no longer contain ANSI escape codes.
  • GinkgoRecover no longer reports a spurious "Test Panicked" on a later spec when a goroutine's Fail is recovered after its node ended.
  • When Ginkgo reports a successful parallel suite but a process exits unsuccessfully (for example a failing Go Example), the CLI now prints that process's output - once per distinct failure - instead of only "Test Suite Failed". Thanks @Boulea7! (#1696)

Maintenance

  • Ginkgo's own test suite now passes when GINKGO_NO_COLOR is set, e.g. in distribution builds that run go test. Thanks @businessdeveloper69! (#1695)
  • De-flaked load-sensitive timing specs in internal/internal_integration.
  • Fixed a typo in the GinkgoT docs. Thanks @ninglinLiu! (#1692)

v2.34.0

Choose a tag to compare

@github-actions github-actions released this 02 Nov 19:13

Features

  • DeferOnFailure registers 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 what DeferCleanup takes and shares its scoping: called in BeforeEach/JustBeforeEach/It it covers the spec, in BeforeAll the ordered container, and in BeforeSuite the whole suite. It is also available on GinkgoT(); note that this adds a method to FullGinkgoTInterface, 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 calls CurrentSpecReport() or AddReportEntry() no longer stalls for 5 seconds and has its output dropped.
  • --sleep-on-failure now runs after any DeferOnFailure callbacks, also pauses when a spec times out, and no longer pauses if the suite has already been interrupted.

v2.33.1

Choose a tag to compare

@github-actions github-actions released this 09 Oct 23:55

Fixes

  • Add several missing fields to spec report JSON output.

v2.33.0

Choose a tag to compare

@github-actions github-actions released this 17 Sep 19:35

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 ## Unreleased as the work happens. See RELEASING.md. [8616ecb]

v2.32.2

Choose a tag to compare

@onsi onsi released this 09 Sep 02:18

2.32.2

Fixes

  • fix bug where ginkgo -race -p was taking extra long to exit [c6792b0]

v2.32.1

Choose a tag to compare

@onsi onsi released this 10 Aug 22:18

2.32.1

Fixes 10BC8

  • Defer AfterAll until repeated spec completes [e647b3b]

v2.32.0

Choose a tag to compare

@onsi onsi released this 22 Jun 17:31

2.32.0

-fd generate RSpec-style documentation output. Thank @woodie !
--sleep-on-failure pauses a failed spec before teardown. Thanks @qinqon !

v2.31.0

Choose a tag to compare

@onsi onsi released this 14 Jun 19:18

2.31.0

Add a bunch of Claude Skills via the marketplace:

/plugin marketplace add onsi/ginkgo
/plugin install ginkgo@ginkgo

v2.30.0

Choose a tag to compare

@onsi onsi released this 11 Jun 15:39

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

Choose a tag to compare

@onsi onsi released this 17 May 23:30

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

0