Skip to content

Releases: microbus-io/testarossa

Special equality check for time.Time

19 Oct 19:47

Choose a tag to compare

  • Using time.Equal to compare two time.Times for equality
  • Adjusted variable name in examples from tt to assert

Match and NotMatch asserters

15 Oct 02:48

Choose a tag to compare

  • New asserters - Match and NotMatch - to test a string against a regular expression.
  • Fail fast in Expect when checking for a nil error, in order to avoid excessive failures when asserting the return arguments of a function call

HTML asserters

12 Oct 03:10

Choose a tag to compare

  • HTMLMatch and HTMLNotMatch enable searching inside the DOM of an HTML document
  • Additional unit tests
  • Attribution.MD file

Not/Contains: support mix of string and []byte

08 Oct 01:16

Choose a tag to compare

Cast to string when Contains or NotContains get a mix of string and []byte arguments.

Improved testing

05 Oct 21:22

Choose a tag to compare

Improved unit tests to check for both the application of a failure on t and the return value of the asserter.

Nil equality check, Expects

05 Oct 20:31

Choose a tag to compare

  • Improved the Equal and NotEqual asserters to better detect nil values
  • Added a new asserter Expect for an equality checks of a list of arguments

Improvements to Contains and NotContains

06 Jul 14:55

Choose a tag to compare

  • Added explicit support for []byte containing or not containing a sub []byte
  • Performance optimization for element matching in slices and maps

Fuller stack trace on fail

14 Jun 02:50

Choose a tag to compare

  • Print the full stack trace with a failure message, not just a single stack frame
--- FAIL: Test_Something
    /github.com/microbus-io/testarossa/some_test.go:389
    /github.com/microbus-io/testarossa/some_test.go:154
    Expected 'foo' to contain 'bar'

Nil check

13 Jun 14:02

Choose a tag to compare

  • Check for nil TextMarshaler and Stringer

Additional improvements to failure messages

13 Jun 13:28

Choose a tag to compare

  • Improve detection of stack location
  • Truncate large value strings to 1K in length
  • Fix: missing type name in failure message when the type doesn't have a length