Skip to content

Releases: onsi/gomega

v1.13.0

27 May 01:22
Compare
Choose a tag to compare
  • Set consistently and eventually defaults on init (#443)

    Using environment variables

    Closes #434

    Signed-off-by: toby lorne toby@toby.codes

  • gmeasure provides BETA support for benchmarking (#447)

    gmeasure is a new gomega subpackage intended to provide measurement and benchmarking support for durations and values. gmeasure replaces Ginkgo V1s deprecated Measure nodes and provides a migration path for users migrating to Ginkgo V2.

    gmeasure is organized around an Experiment metaphor. Experiments can record several different Measurements, with each Measurement comprised of multiple data points. Measurements can hold time.Durations and float64 values and gmeasure includes support measuring the duraiton of callback functions and for sampling functions repeatedly to build an ensemble of data points. In addition, gmeasure introduces a Stopwatch abtraction for easily measuring and recording durations of code segments.

    Once measured, users can readily generate Stats for Measurements to capture their key statistics and these stats can be ranked using a Ranking and associated RankingCriteria.

    Experiments can be Cached to disk to speed up subsequent runs. Experiments are cached by name and version number which makes it easy to manage and bust the cache.

    Finally, gmeasure integrates with Ginkgo V2 via the new ReportEntry abstraction. Experiments, Measurements, and Rankings can all be registered via AddReportEntry. Doing so generates colorful reports as part of Ginkgo's test output.

    gmeasure is currently in beta and will go GA around when Ginkgo V2 goes GA.

v1.12.0

05 May 18:57
Compare
Choose a tag to compare

Features

Fixes

  • Fix error message in BeNumericallyMatcher (#432) [09c074a]
  • Bump github.com/onsi/ginkgo from 1.12.1 to 1.16.2 (#442) [e5f6ea0]
  • Bump github.com/golang/protobuf from 1.4.3 to 1.5.2 (#431) [adae3bf]
  • Bump golang.org/x/net (#441) [3275b35]

v1.11.0

07 Mar 11:17
Compare
Choose a tag to compare

Features

Fixes

  • Check more carefully for nils in WithTransform (#423) [3c60a15]
  • fix: typo in Makefile [b82522a]
  • Allow WithTransform function to accept a nil value (#422) [b75d2f2]
  • fix: print value type for interface{} containers (#409) [f08e2dc]
  • fix(BeElementOf): consistently flatten expected values [1fa9468]

v1.10.5

01 Feb 22:00
Compare
Choose a tag to compare

Fixes

  • fix: collections matchers should display type of expectation (#408) [6b4eb5a]
  • fix(ContainElements): consistently flatten expected values [073b880]
  • fix(ConsistOf): consistently flatten expected values [7266efe]

v1.10.4

08 Dec 20:12
Compare
Choose a tag to compare

Fixes

  • update golang net library to more recent version without vulnerability (#406) [817a8b9]
  • Correct spelling: alloted -> allotted (#403) [0bae715]
  • fix a panic in MessageWithDiff with long message (#402) [ea06b9b]

v1.10.3

12 Oct 17:56
Compare
Choose a tag to compare

Fixes

  • updates golang/x/net to fix vulnerability detected by snyk (#394) [c479356]

v1.10.2

04 Sep 19:23
Compare
Choose a tag to compare

Fixes

  • Add ExpectWithOffset, EventuallyWithOffset and ConsistentlyWithOffset to WithT (#391) [990941a]

v1.10.1

20 May 16:27
Compare
Choose a tag to compare

Fixes

v1.10.0

07 May 09:06
Compare
Choose a tag to compare

Features

  • Add HaveHTTPStatusMatcher (#378) [f335c94]
  • Changed matcher for content-type in VerifyJSONRepresenting (#377) [6024f5b]
  • Make ghttp usable with x-unit style tests (#376) [c0be499]
  • Implement PanicWith matcher (#381) [f8032b4]

v1.9.0

01 Feb 10:42
Compare
Choose a tag to compare

Features

  • Add ContainElements matcher (#370) [2f57380]
  • Output missing and extra elements in ConsistOf failure message [a31eda7]
  • Document method LargestMatching [7c5a280]