github.com/fogfish/it/v2 (go): Package it implements a human-friendly syntax for assertions to validates correctness of your code. It's style allows to write BDD-like specifications: "X should Y", "A equals to B", etc.  There is a vision that change of code style in testing helps developers to "switch gears". It's sole purpose to write unit tests assertions in natural language. The library is inspired by features of http://www.scalatest.org and tries to adapt similar syntax for Golang.  The approximation of the style into Golang syntax:  Each assertion begins with phrase:  Continues with one of imperative keyword as defined by RFC 2119  Assertions with inline closure is a technique to define arbitrary boolean expression.  Intercept any failures in target features  Matches equality and identity  Matches type  Matches Order and Ranges
Keywords: assert|behavior-driven-development|go|golang|human-friendly|test-driven-development|unit-testing