Go test framework for assertions, fuzzing, and more
Top 71.0% on sourcepulse
Testza is a comprehensive Go testing framework designed to enhance the developer experience with a rich set of assertion methods, fuzzing capabilities, and output capturing. It integrates seamlessly with the standard go test
tool, offering a user-friendly and colorful output for clearer test results.
How It Works
Testza provides a wide array of assertion functions that cover common testing needs, from simple equality checks to more complex scenarios like checking function execution time or validating directory states. Its fuzzing utilities generate diverse input sets for strings, integers, and floats, enabling robust testing against various edge cases. The framework also includes utilities for capturing stdout and stderr, and a snapshot testing feature to ensure consistent output or data structures across test runs.
Quick Start & Requirements
go get github.com/MarvinJWendt/testza
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The extensive fuzzing capabilities, while powerful, may require careful management of test set sizes to avoid excessively long test runs. Snapshot testing relies on files stored in /testdata/snapshots/
, which need to be managed and potentially committed to version control.
1 year ago
1 day