A Mocha-like BDD testing framework for Go with colorful reports, no external dependencies, and expressive syntax.
Goblin is a minimal BDD-style testing framework for Go, inspired by Node.js's Mocha. It provides an expressive, declarative syntax for writing self-describing tests while fully integrating with the standard `go test` tool, aiming to make tests more descriptive and comprehensive compared to Go's conventional testing approaches.
Go developers who prefer behavior-driven development (BDD) patterns, especially those familiar with Mocha from Node.js, and teams seeking more readable and organized test structures.
Developers choose Goblin for its Mocha-like syntax with no external dependencies, colorful reports, and seamless integration with `go test`, offering a flexible alternative to Go's native testing without additional setup.
Minimal and Beautiful Go testing framework
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides familiar Describe and It blocks for developers from Node.js, making tests expressive and self-describing, as inspired by Mocha's flexibility.
Works out-of-the-box with standard Go tooling, requiring no additional packages, which simplifies setup and reduces maintenance overhead.
Automatically supports colored terminal outputs for better readability, as shown in the README's example output image.
Facilitates testing goroutines using a done callback pattern, crucial for Go's concurrent programming model.
Requires wrapping all tests in a single Test function to hook into go test, adding an unnecessary layer compared to native testing.
Only officially supports Gomega with a workaround, and the README admits an issue with Gomega's integration, restricting flexibility.
Lacks built-in support for parallel testing, custom reporters, or advanced BDD tooling found in frameworks like Ginkgo.