DEV Community

Discussion on: How I write my unit tests in Go quickly

Collapse
 
nicovogelaar profile image
Nico Vogelaar

Good article. Another BDD testing framework is: Godog

I use Godog for functional testing. What I like about this testing tool compared to Ginkgo is that the scenarios are described in feature files. This way, the scenarios are independent from the code and programming language. Godog provides a tool that can generate the skeleton of the implementation of the tests based on the feature files.

Collapse
 
ilyakaznacheev profile image
Ilya Kaznacheev

Looks interesting too. I don't really like the regex part, because that means, that you have to have the spec file and the test file with the same steps, and if you will change the spec file it may occasionally break tests. But as an example of cucumber itself, it is nice. I'll try to use it in my next project.