While step by step reorganizing the Tideland Go libraries the one for testing your projects reached a new version. I’ve just released the Tideland Go Audit v0.5.0. As it already is a very robust and complete library there are only few changes.
assertspackage now provides the additional assertions
- In case of asserting tests and using
Errorf()will be used for output. This way there are less conflicts with some CI environments.
generatorspackage now also contains a
OneOf()returning one of the given variadic parameters.
The library Tideland Go Audit supports testing Go projects in multiple ways:
assertsprovides functions for assertions helpful in tests and validation.
captureallows capturing of STDOUT and STDERR.
environmentsprovides setting of environment variables, creation of temporary directories, and running web servers for tests.
generatorssimplifies generation of test data. In case of initializing it with a fixed random the generated values are also repeatable.