All Versions
27
Latest Version
Avg Release Cycle
63 days
Latest Release
-

Changelog History
Page 1

  • v1.16.0 Changes

    ๐Ÿ”‹ Features

    • feat: HaveHTTPStatus multiple expected values (#465) [aa69f1b]
    • feat: HaveHTTPHeaderWithValue() matcher (#463) [dd83a96]
    • feat: HaveHTTPBody matcher (#462) [504e1f2]
    • feat: formatter for HTTP responses (#461) [e5b3157]
  • v1.15.0 Changes

    ๐Ÿ›  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 Changes

    ๐Ÿ”‹ 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

    • Call Verify GHTTPWithGomega receiver funcs (#454) [496e6fd]
    • ๐Ÿ— Build a binary with an expected name (#446) [7356360]
  • v1.13.0 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿ‘ gmeasure provides BETA support for benchmarking (#447) [8f2dfbf]
    • 0๏ธโƒฃ Set consistently and eventually defaults on init (#443) [12eb778]
  • v1.12.0 Changes

    ๐Ÿ”‹ Features

    • โž• Add Satisfy() matcher (#437) [c548f31]
    • ๐Ÿ‘‰ tweak truncation message [3360b8c]
    • โž• Add format.GomegaStringer (#427) [cc80b6f]
    • โž• Add Clear() method to gbytes.Buffer [c3c0920]

    ๐Ÿ›  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 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿ”‹ feature: add index to gstruct element func (#419) [334e00d]
    • โœ… feat(gexec) Add CompileTest functions. Close #410 (#411) [47c613f]

    ๐Ÿ›  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 Changes

    ๐Ÿ›  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 Changes

    December 08, 2020

    ๐Ÿ›  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 Changes

    October 12, 2020

    ๐Ÿ›  Fixes

    • โšก๏ธ updates golang/x/net to fix vulnerability detected by snyk (#394) [c479356]
  • v1.10.2 Changes

    September 04, 2020

    ๐Ÿ›  Fixes

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