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

Changelog History
Page 3

  • v1.7.0 Changes

    August 28, 2019

    ๐Ÿ”‹ Features

    ๐Ÿ›  Fixes

    • ๐Ÿ“š minor fix in the documentation of ExpectWithOffset (#358) [beea727]
  • v1.6.0 Changes

    August 19, 2019

    ๐Ÿ”‹ Features

    • Display special chars on error [41e1b26]
    • โž• Add BeElementOf matcher [6a48b48]

    ๐Ÿ›  Fixes

    • โœ‚ Remove duplication in XML matcher tests [cc1a6cb]
    • โœ‚ Remove unnecessary conversions (#357) [7bf756a]
    • ๐Ÿ›  Fixed import order (#353) [2e3b965]
    • โž• Added missing error handling in test (#355) [c98d3eb]
    • Simplify code (#356) [0001ed9]
    • Simplify code (#354) [0d9100e]
    • ๐Ÿ›  Fixed typos (#352) [3f647c4]
    • โž• Add failure message tests to BeElementOf matcher [efe19c3]
    • โšก๏ธ Update go-testcov untested sections [37ee382]
    • โœ… Mark all uncovered files so go-testcov ./... works [53b150e]
    • Reenable gotip in travis [5c249dc]
    • ๐Ÿ›  Fix the typo of comment (#345) [f0e010e]
    • Optimize contain_element_matcher [abeb93d]
  • v1.5.0 Changes

    March 12, 2019

    ๐Ÿ”‹ Features

    • โž• Added MatchKeys matchers [8b909fc]

    ๐Ÿ›  Fixes and Minor Improvements

    • โž• Add type aliases to remove stuttering [03b0461]
    • ๐Ÿ Don't run session_test.go on windows (#324) [5533ce8]
  • v1.4.3 Changes

    November 21, 2018

    ๐Ÿ›  Fixes:

    • ensure file name and line numbers are correctly reported for XUnit [6fff58f]
    • ๐Ÿ›  Fixed matcher for content-type (#305) [69d9b43]
  • v1.4.2 Changes

    September 11, 2018

    ๐Ÿ›  Fixes:

    • โž• Add go.mod and go.sum files to define the gomega go module [f3de367, a085d30]
    • โ†ช Work around go vet issue with Go v1.11 (#300) [40dd6ad]
    • ๐Ÿ‘ Better output when using with go XUnit-style tests, fixes #255 (#297) [29a4b97]
    • ๐Ÿ›  Fix MatchJSON fail to parse json.RawMessage (#298) [ae19f1b]
    • ๐Ÿ‘‰ show threshold in failure message of BeNumericallyMatcher (#293) [4bbecc8]
  • v1.4.1 Changes

    July 17, 2018

    ๐Ÿ›  Fixes:

    • ๐Ÿ“š Update documentation formatting and examples (#289) [9be8410]
    • ๐Ÿ‘ allow 'Receive' matcher to be used with concrete types (#286) [41673fd]
    • ๐Ÿ›  Fix data race in ghttp server (#283) [7ac6b01]
    • Travis badge should only show master [cc102ab]
  • v1.4.0 Changes

    ๐Ÿ”‹ Features

    • ๐Ÿ”ง Make string pretty diff user configurable (#273) [eb112ce, 649b44d]

    ๐Ÿ›  Fixes

    • ๐Ÿ–จ Use httputil.DumpRequest to pretty-print unhandled requests (#278) [a4ff0fc, b7d1a52]
    • ๐Ÿ›  fix typo floa32 > float32 (#272) [041ae3b, 6e33911]
    • ๐Ÿ›  Fix link to documentation on adding your own matchers (#270) [bb2c830, fcebc62]
    • ๐Ÿ‘‰ Use setters and getters to avoid race condition (#262) [13057c3, a9c79f1]
    • ๐Ÿšฆ Avoid sending a signal if the process is not alive (#259) [b8043e5, 4fc1762]
    • ๐Ÿ‘Œ Improve message from AssignableToTypeOf when expected value is nil (#281) [9c1fb20]
  • v1.3.0 Changes

    ๐Ÿ‘Œ Improvements:

    • The Equal matcher matches byte slices more performantly.
    • ๐Ÿ‘Œ Improved how MatchError matches error strings.
    • MatchXML ignores the order of xml node attributes.
    • ๐Ÿ‘Œ Improve support for XUnit style golang tests. (#254)

    ๐Ÿ› Bug Fixes:

    • Diff generation now handles multi-byte sequences correctly.
    • ๐Ÿ— Multiple goroutines can now call gexec.Build concurrently.
  • v1.2.0 Changes

    ๐Ÿ‘Œ Improvements:

    • โž• Added BeSent which attempts to send a value down a channel and fails if the attempt blocks. Can be paired with Eventually to safely send a value down a channel with a timeout.
    • โœ… ฮฉ, Expect, Eventually, and Consistently now immediately panic if there is no registered fail handler. This is always a mistake that can hide failing tests.
    • Receive() no longer errors when passed a closed channel, it's perfectly fine to attempt to read from a closed channel so ฮฉ(c).Should(Receive()) always fails and ฮฉ(c).ShoudlNot(Receive()) always passes with a closed channel.
    • โž• Added HavePrefix and HaveSuffix matchers.
    • ghttp can now handle concurrent requests.
    • โž• Added Succeed which allows one to write ฮฉ(MyFunction()).Should(Succeed()).
    • ๐Ÿ‘Œ Improved ghttp's behavior around failing assertions and panics:
      • If a registered handler makes a failing assertion ghttp will return 500.
      • If a registered handler panics, ghttp will return 500 and fail the test. This is new behavior that may cause existing code to break. This code is almost certainly incorrect and creating a false positive.
    • ghttp servers can take an io.Writer. ghttp will write a line to the writer when each request arrives.
    • โž• Added WithTransform matcher to allow munging input data before feeding into the relevant matcher
    • โž• Added boolean And, Or, and Not matchers to allow creating composite matchers
    • โž• Added gbytes.TimeoutCloser, gbytes.TimeoutReader, and gbytes.TimeoutWriter - these are convenience wrappers that timeout if the underlying Closer/Reader/Writer does not return within the alloted time.
    • โž• Added gbytes.BufferReader - this constructs a gbytes.Buffer that asynchronously reads the passed-in io.Reader into its buffer.

    ๐Ÿ› Bug Fixes:

    • gexec: session.Wait now uses EventuallyWithOffset to get the right line number in the failure.
    • ContainElement no longer bails if a passed-in matcher errors.
  • v1.0 Changes

    No changes. Dropping "beta" from the version number.