Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Conversation

@mend-for-github-com
Copy link

@mend-for-github-com mend-for-github-com bot commented Feb 27, 2022

This PR contains the following updates:

Package Type Update Change
github.com/onsi/gomega require minor v1.9.0 -> v1.19.0

Release Notes

onsi/gomega

v1.19.0

Compare Source

Features

  • New HaveEach matcher to ensure that each and every element in an array, slice, or map satisfies the passed in matcher. (#​523) [9fc2ae2] (#​524) [c8ba582]
  • Users can now wrap the Gomega interface to implement custom behavior on each assertion. (#​521) [1f2e714]
  • ContainElement now accepts an additional pointer argument. Elements that satisfy the matcher are stored in the pointer enabling developers to easily add subsequent, more detailed, assertions against the matching element. (#​527) [1a4e27f]

Fixes

v1.18.1

Compare Source

v1.18.0

Compare Source

Features

  • Docs now live on the master branch in the docs folder which will make for easier PRs. The docs also use Ginkgo 2.0's new docs html/css/js. [2570272]
  • New HaveValue matcher can handle actuals that are either values (in which case they are passed on unscathed) or pointers (in which case they are indirected). Docs here. (#​485) [bdc087c]
  • Gmeasure has been declared GA [360db9d]

Fixes

  • Gomega now uses ioutil for Go 1.15 and lower (#​492) - official support is only for the most recent two major versions of Go but this will unblock users who need to stay on older unsupported versions of Go. [c29c1c0]

Maintenace

  • Remove Travis workflow (#​491) [72e6040]
  • Upgrade to Ginkgo 2.0.0 GA [f383637]
  • chore: fix description of HaveField matcher (#​487) [2b4b2c0]
  • use tools.go to ensure Ginkgo cli dependencies are included [f58a52b]
  • remove dockerfile and simplify github actions to match ginkgo's actions [3f8160d]

v1.17.0

Compare Source

1.17.0

Features
Fixes

Stop using deprecated ioutil package (#​467) [07f405d]

v1.16.0

Compare Source

Features

v1.15.0

Compare Source

1.15.0

Fixes

The previous version (1.14.0) introduced a change to allow Eventually and Consistently to support functions that make assertions. This was accomplished by overriding the global fail handler when running the callbacks passed to Eventually/Consistently in order to capture any resulting errors. Issue #​457 uncovered a flaw with this approach: when multiple Eventuallys are running concurrently they race when overriding the singleton global fail handler.

1.15.0 resolves this by requiring users who want to make assertions in Eventually/Consistently call backs to explicitly pass in a function that takes a Gomega as an argument. The passed-in Gomega instance can be used to make assertions. Any failures will cause Eventually to retry the callback. This cleaner interface avoids the issue of swapping out globals but comes at the cost of changing the contract introduced in v1.14.0. As such 1.15.0 introduces a breaking change with respect to 1.14.0 - however we expect that adoption of this feature in 1.14.0 remains limited.

In addition, 1.15.0 cleans up some of Gomega's internals. Most users shouldn't notice any differences stemming from the refactoring that was made.

v1.14.0

Compare Source

1.14.0

Features
  • gmeasure.SamplingConfig now suppers a MinSamplingInterval [e94dbca]
  • Eventually and Consistently support functions that make assertions [2f04e6e]
    • Eventually and Consistently now allow their passed-in functions to make assertions.
      These assertions must pass or the function is considered to have failed and is retried.
    • Eventually and Consistently can now take functions with no return values. These implicitly return nil
      if they contain no failed assertion. Otherwise they return an error wrapping the first assertion failure. This allows
      these functions to be used with the Succeed() matcher.
    • Introduce InterceptGomegaFailure - an analogue to InterceptGomegaFailures - that captures the first assertion failure
      and halts execution in its passed-in callback.
Fixes

v1.13.0

Compare Source

  • 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

Compare Source

Features
Fixes

v1.11.0

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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

v1.10.2

Compare Source

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

v1.10.1

Compare Source

Fixes

v1.10.0

Compare Source

Features

Configuration

📅 Schedule: "every weekend" in timezone GB.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

@mend-for-github-com mend-for-github-com bot changed the title Update module github.com/onsi/gomega to v1.18.1 fix(deps): update module github.com/onsi/gomega to v1.18.1 Mar 2, 2022
@mend-for-github-com mend-for-github-com bot force-pushed the whitesource-remediate/github.com-onsi-gomega-1.x branch from 3cd885f to b31a2b0 Compare March 26, 2022 00:01
@mend-for-github-com mend-for-github-com bot changed the title fix(deps): update module github.com/onsi/gomega to v1.18.1 fix(deps): update module github.com/onsi/gomega to v1.19.0 Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant