go-testdeep
godog
Our great sponsors
go-testdeep | godog | |
---|---|---|
11 | 5 | |
417 | 2,162 | |
- | 1.2% | |
7.0 | 6.6 | |
3 days ago | 18 days ago | |
Go | Go | |
BSD 2-clause "Simplified" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-testdeep
-
Libraries you use most of your projects?
TestDeep. I got pretty used to many of the matchers and they simplify my life now.
-
Patterns for unit testing in Go?
Check go-testdeep using its operators, it is very easy to do table driven tests, see https://goplay.space/#Z91D72aH3Sc for an example
-
go-testdeep v1.11.0 released with many new features and some fixes
See https://github.com/maxatome/go-testdeep/releases/tag/v1.11.0 for changes.
-
go-testdeep v1.10.0 then v1.10.1 released with many new features!
go-testdeep, the powerful testing framework based on easy to use operators, continues to evolve...
the 1.10.0 release with many new features including a new SuperSliceOf operator (so now 62 operators!), a relaxed JSON parser, the possibility to ignore unexported struct fields, to target a specific nested field (even private), the enhancement of tdhttp HTTP API tester to check cookies, to use multipart/form-data bodies, and many other magic things…
-
Do you prefer go-convey over golang's t.Run?
And of course go-testdeep which colorizes the error reports with simple but accurate diff.
godog
-
What's your favourite part of unit testing?
I also use BDD (Gherkin with godog in particular) to verify and document the expected behaviour of a product from an end user's perspective when needed. I usually do this when the product also contains untested code that I have no control over when I'm working on a problem - this gives me peace of mind over something I can't control while doubling as documentation.
-
Behaviour Driven Development (BDD) boilerplate tests generator
It looks like it is not possible to share steps between scenario's or features. In https://github.com/cucumber/godog it is possible to share steps.
-
Behaviour Driven Development (BDD) boilerplate tests generator for Golang
Differences between gherkingen and godog are:
- BDD (Behavior-driven development) mit Go
What are some alternatives?
ginkgo - A Modern Testing Framework for Go
GoConvey - Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
venom - 🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
assert - :exclamation:Basic Assertion Library used along side native go testing, with building blocks for custom assertions
gomega - Ginkgo's Preferred Matcher Library
go-mutesting - Mutation testing for Go source code
Gauge - Light weight cross-platform test automation
go-cmp - Package for comparing Go values in tests
endly - End to end functional test and automation framework