All PRs and code should be against the develop branch. Before submitting PRs, you should make sure that tests are passing properly.
Unit tests
Before running the unit test on your local machine, you should install
golangci-lint following its documentation, see
https://github.com/golangci/golangci-lint. (Indeed, the way the
lint script installs golangci-lint is not suitable for running
on a local machine.)
Then run the unit tests using the dedicated script.
bin/test-unit
Integration tests
There are 3 distinct flavors of integration tests. Run the relevant one, or
all, depending on the changes you’ve done.
bin/test-integration memory # <- uses an in-memory database
bin/test-integration mysql # <- uses a MySQL database
bin/test-integration postgresql # <- uses a PostgreSQL database
Config Server
See config-server-release for the release repo for config-server See bosh-notes for more information
Contributing
All PRs and code should be against the
developbranch. Before submitting PRs, you should make sure that tests are passing properly.Unit tests
Before running the unit test on your local machine, you should install
golangci-lintfollowing its documentation, see https://github.com/golangci/golangci-lint. (Indeed, the way the lint script installsgolangci-lintis not suitable for running on a local machine.)Then run the unit tests using the dedicated script.
Integration tests
There are 3 distinct flavors of integration tests. Run the relevant one, or all, depending on the changes you’ve done.