Go Behave! A BDD Framework for the Go Programming Language

Gospecify is a behavior-driven development (BDD) framework for Go. Rather than focus on testing every nook and cranny of some code, it helps a programmer produce an executable specification of that code’s behavior. Go’s syntax allowed gospecify to be almost as expressive as Ruby’s rpsec; however, a few tricks had …

Good Test, Better Code – From Unit Testing to Behavior-Driven Development

“Testing is design”; “Unit tests are documentation”; “Tests are specifications”. These are sought-after rewards of developer testing practices, but simply writing tests or even writing tests before writing production code doesn’t make these wishes come true. When we take up unit testing, we initially tend to do things a certain …