Changelog History
Page 1
-
v1.19.0
-
v1.18.1
-
v1.18.0
-
v1.17.0 Changes
๐ Features
- โ Add HaveField matcher [3a26311]
- โ add Error() assertions on the final error value of multi-return values (#480) [2f96943]
- separate out offsets and timeouts (#478) [18a4723]
- ๐ fix transformation error reporting (#479) [e001fab]
- ๐ allow transform functions to report errors (#472) [bf93408]
๐ Fixes
๐ฆ Stop using deprecated ioutil package (#467) [07f405d]
-
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
andConsistently
to support functions that make assertions. This was accomplished by overriding the global fail handler when running the callbacks passed toEventually/Consistently
in order to capture any resulting errors. Issue #457 uncovered a flaw with this approach: when multipleEventually
s 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 aGomega
as an argument. The passed-inGomega
instance can be used to make assertions. Any failures will causeEventually
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]