Skip to content

Releases: onsi/ginkgo

v2.9.3

03 May 03:19
Compare
Choose a tag to compare

2.9.3

Features

  • Add RenderTimeline to GinkgoT() [c0c77b6]

Fixes

Maintenance

  • Bump commonmarker from 0.23.8 to 0.23.9 in /docs (#1183) [8b925ab]
  • Bump nokogiri from 1.14.1 to 1.14.3 in /docs (#1184) [e3795a4]
  • Bump golang.org/x/tools from 0.7.0 to 0.8.0 (#1182) [b453793]
  • Bump actions/setup-go from 3 to 4 (#1164) [73ed75b]
  • Bump github.com/onsi/gomega from 1.27.4 to 1.27.6 (#1173) [0a2bc64]
  • Bump github.com/go-logr/logr from 1.2.3 to 1.2.4 (#1174) [f41c557]
  • Bump golang.org/x/sys from 0.6.0 to 0.7.0 (#1179) [8e423e5]

v2.9.2

23 Mar 16:13
Compare
Choose a tag to compare

2.9.2

Maintenance

  • Bump github.com/go-task/slim-sprig (#1167) [3fcc5bf]
  • Bump github.com/onsi/gomega from 1.27.3 to 1.27.4 (#1163) [6143ffe]

v2.9.1

12 Mar 18:53
Compare
Choose a tag to compare

2.9.1

Fixes

This release fixes a longstanding issue where ginkgo -coverpkg=./... would not work. This is now resolved and fixes #1161 and #995

  • Support -coverpkg=./... [26ca1b5]
  • document coverpkg a bit more clearly [fc44c3b]

Maintenance

  • bump various dependencies
  • Improve Documentation and fix typo (#1158) [93de676]

v2.9.0

03 Mar 21:12
Compare
Choose a tag to compare

2.9.0

Features

  • AttachProgressReporter is an experimental feature that allows users to provide arbitrary information when a ProgressReport is requested [28801fe]

  • GinkgoT() has been expanded to include several Ginkgo-specific methods [2bd5a3b]

    The intent is to enable the development of third-party libraries that integrate deeply with Ginkgo using GinkgoT() to access Ginkgo's functionality.

v2.8.4

27 Feb 15:56
Compare
Choose a tag to compare

2.8.4

Features

  • Add OmitSuiteSetupNodes to JunitReportConfig (#1147) [979fbc2]
  • Add a reference to ginkgolinter in docs.index.md (#1143) [8432589]

Fixes

  • rename tools hack to see if it fixes things for downstream users [a8bb39a]

Maintenance

v2.8.3

18 Feb 12:30
Compare
Choose a tag to compare

2.8.3

Released to fix security issue in golang.org/x/net dependency

Maintenance

  • Bump golang.org/x/net from 0.6.0 to 0.7.0 (#1141) [fc1a02e]
  • remove tools.go hack from documentation [0718693]

v2.8.2

17 Feb 21:25
Compare
Choose a tag to compare

2.8.2

Ginkgo now includes a tools.go file in the root directory of the ginkgo package. This should allow modules that simply go get github.com/onsi/ginkgo/v2 to also pull in the CLI dependencies. This obviates the need for consumers of Ginkgo to have their own tools.go file and makes it simpler to ensure that the version of the ginkgo CLI being used matches the version of the library. You can simply run go run github.com/onsi/ginkgo/v2/ginkgo to run the version of the cli associated with your package go.mod.

Maintenance

v2.8.1

13 Feb 21:03
Compare
Choose a tag to compare

2.8.1

Fixes

  • lock around default report output to avoid triggering the race detector when calling By from goroutines [2d5075a]
  • don't run ReportEntries through sprintf [febbe38]

Maintenance

  • Bump golang.org/x/tools from 0.5.0 to 0.6.0 (#1135) [11a4860]
  • test: update matrix for Go 1.20 (#1130) [4890a62]
  • Bump golang.org/x/sys from 0.4.0 to 0.5.0 (#1133) [a774638]
  • Bump github.com/onsi/gomega from 1.25.0 to 1.26.0 (#1120) [3f233bd]
  • Bump github-pages from 227 to 228 in /docs (#1131) [f9b8649]
  • Bump activesupport from 6.0.6 to 6.0.6.1 in /docs (#1127) [6f8c042]
  • Update index.md with instructions on how to upgrade Ginkgo [833a75e]

v2.8.0

30 Jan 17:28
Compare
Choose a tag to compare

2.8.0

Features

  • Introduce GinkgoHelper() to track and exclude helper functions from potential CodeLocations [e19f556]

Modeled after testing.T.Helper(). Now, rather than write code like:

func helper(model Model) {
    Expect(model).WithOffset(1).To(BeValid())
    Expect(model.SerialNumber).WithOffset(1).To(MatchRegexp(/[a-f0-9]*/))
}

you can stop tracking offsets (which makes nesting composing helpers nearly impossible) and simply write:

func helper(model Model) {
    GinkgoHelper()
    Expect(model).To(BeValid())
    Expect(model.SerialNumber).To(MatchRegexp(/[a-f0-9]*/))
}
  • Introduce GinkgoLabelFilter() and Label().MatchesLabelFilter() to make it possible to programmatically match filters (fixes #1119) [2f6597c]

You can now write code like this:

BeforeSuite(func() {
	if Label("slow").MatchesLabelFilter(GinkgoLabelFilter()) {
		// do slow setup
	}

	if Label("fast").MatchesLabelFilter(GinkgoLabelFilter()) {
		// do fast setup
	}
})

to programmatically check whether a given set of labels will match the configured --label-filter.

Maintenance

v2.7.1

28 Jan 05:03
Compare
Choose a tag to compare

2.7.1

Fixes

  • Bring back SuiteConfig.EmitSpecProgress to avoid compilation issue for consumers that set it manually [d2a1cb0]

Maintenance

  • Bump github.com/onsi/gomega from 1.24.2 to 1.25.0 (#1118) [cafece6]
  • Bump golang.org/x/tools from 0.4.0 to 0.5.0 (#1111) [eda66c2]
  • Bump golang.org/x/sys from 0.3.0 to 0.4.0 (#1112) [ac5ccaa]
  • Bump github.com/onsi/gomega from 1.24.1 to 1.24.2 (#1097) [eee6480]