{"full_name":"onsi/ginkgo","owner":"onsi","name":"ginkgo","shard":"1","url":"https://github.com/onsi/ginkgo","description":"A Modern Testing Framework for Go","homepage":"http://onsi.github.io/ginkgo/","topics":["golang","testing","test","test-driven-development","bdd","bdd-framework","go"],"tag_pages":["bdd","go","golang","test","test-driven-development","testing"],"language":"Go","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/558230?v=4","created_at":"2013-08-23T20:53:05Z","pushed_at":"2026-11-02T19:13:27Z","metrics":{"stars":9076,"forks":710,"watchers":99,"issues":921,"prs":732,"releases":115,"issues_open":96,"issues_closed":825,"prs_open":32,"prs_closed":166,"prs_merged":534,"discussions":8},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[9073,9076,9077,9077,9076,9076,9076],"forks":[710,709,709,709,709,710,710],"watchers":[null,99,99,99,99,99,99],"issues_open":[null,96,96,96,96,96,96],"prs_open":[null,32,32,32,32,32,32]},"boards":{},"same_owner":[],"issues":[{"number":1278,"title":"Support for ordered test suite?(E.g. Smoke test suite is first run, then test suite for each components, finally performance test suite)","comments":22,"created_at":"2023-09-26T21:59:55Z"},{"number":892,"title":"Is it possible to write my own decorator?","comments":18,"created_at":"2022-01-26T15:03:53Z"},{"number":1108,"title":"Patterns for managing expensive spec setup","comments":17,"created_at":"2022-12-28T19:53:02Z"},{"number":1668,"title":"Feature Request: Emulate -fd style output","comments":12,"created_at":"2026-06-04T06:51:57Z"},{"number":378,"title":"How to write table driven tests with variable in BeforeEach","comments":12,"created_at":"2017-09-21T01:03:37Z"},{"number":1242,"title":"Same test executed multiple times in parallel on different processes and some of them not at all","comments":11,"created_at":"2023-07-26T15:38:08Z"},{"number":1165,"title":"Need help to run the tests in specific order","comments":11,"created_at":"2023-03-16T19:19:52Z"},{"number":1348,"title":"cannot support multi version of go ","comments":10,"created_at":"2024-02-05T05:28:17Z"}],"discussions":[{"number":1667,"title":"How to? InterceptGinkgoFail(ure)?","comments":1,"category":"Q&A","created_at":"2026-05-18T16:01:53Z"},{"number":1660,"title":"How to correctly HCF (Halt and Catch Fire) with showing the call site of a ginkgo helper when a non-user test visible goroutine catches fire?","comments":2,"category":"Q&A","created_at":"2026-05-09T15:41:29Z"},{"number":1523,"title":"junit report granularity","comments":1,"category":"Q&A","created_at":"2025-03-04T11:07:26Z"},{"number":1514,"title":"Multiple test \"groupings\" - outputs and reports","comments":1,"category":"Q&A","created_at":"2025-02-07T01:04:48Z"},{"number":1508,"title":"Optimizing integration testing with ginkgo + testcontainers: reducing resource usage by sharing a single container across test suites","comments":1,"category":"Q&A","created_at":"2025-01-17T04:59:18Z"},{"number":1488,"title":"Making error messages more readable.","comments":2,"category":"Q&A","created_at":"2024-11-29T09:44:00Z"},{"number":1487,"title":"Testing embedded JavaScript in my headless browser (and a question)","comments":4,"category":"Show and tell","created_at":"2024-11-27T10:31:45Z"},{"number":1432,"title":"Supported Platforms for race flag","comments":1,"category":"General","created_at":"2024-07-03T18:31:58Z"}],"latest_release":{"name":"v2.34.0","tag":"v2.34.0","published_at":"2026-11-02T19:13:29Z","body":"### Features\n- `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\n\n### Fixes\n- 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.\n- `--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.\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}