https://github.com/blimmer/brigade-project-integration-test
This project shows how you can integration test a brigade.js project
https://github.com/blimmer/brigade-project-integration-test
Last synced: 11 months ago
JSON representation
This project shows how you can integration test a brigade.js project
- Host: GitHub
- URL: https://github.com/blimmer/brigade-project-integration-test
- Owner: blimmer
- Created: 2018-10-05T17:06:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T02:45:09.000Z (over 7 years ago)
- Last Synced: 2025-02-26T20:43:01.950Z (over 1 year ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brigade Project Integration Testing
An example of how to run unit tests against a [Brigade](https://brigade.sh/)
project, using [minikube](https://kubernetes.io/docs/setup/minikube/).
## Cloning
This codebase makes use of [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules).
To clone, run:
```console
git clone --recurse-submodules https://github.com/blimmer/brigade-project-integration-test.git
```
## Testing
This project has an extensive integration testing framework. It makes use of
[minikube](https://kubernetes.io/docs/setup/minikube/) to set up a local
instance of the project and run real-world scenarios to verify behavior.
To run tests, execute:
```console
./test/run
```
This script sets up a local minikube with the test project to execute tests
against. These tests also run in
[Travis-CI](https://travis-ci.com/blimmer/brigade-project-integration-test).
### Framework
We utilize the [bats](https://github.com/sstephenson/bats) framework for
writing our unit tests. Additionally, we rely on
[bats-assert](https://github.com/ztombol/bats-assert) for syntactic sugar.
Please refer to the links above to learn more about writing tests.