An example of how to run unit tests against a Brigade project, using minikube.
This codebase makes use of git submodules. To clone, run:
git clone --recurse-submodules https://github.com/blimmer/brigade-project-integration-test.git
This project has an extensive integration testing framework. It makes use of minikube to set up a local instance of the project and run real-world scenarios to verify behavior.
To run tests, execute:
./test/run
This script sets up a local minikube with the test project to execute tests against. These tests also run in Travis-CI.
We utilize the bats framework for writing our unit tests. Additionally, we rely on bats-assert for syntactic sugar.
Please refer to the links above to learn more about writing tests.