doc: add description for containerized-test to development-guide

Suggested-by: Wilmar den Ouden <info@wilmardenouden.nl>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-04-21 15:41:17 +02:00 committed by mergify[bot]
parent 22c0baa4b0
commit 718e76d290

View File

@ -44,6 +44,26 @@ To build ceph-csi in a container:
The built binary will be present under `_output/` directory. The built binary will be present under `_output/` directory.
### Running Ceph-CSI tests in a container
Once the changes to the sources compile, it is good practise to run the tests
that validate the style and other basics of the source code. Execute the unit
tests (in the `*_test.go` files) and check the formatting of YAML files,
MarkDown documents and shell scripts:
`$ make containerized-test`
It is also possible to run only selected tests, these are the targets in the
`Makefile` in the root of the project. For example, run the different static
checks with:
`$ make containerized-test TARGET=static-check`
In addition to running tests locally, each Pull Request that is created will
trigger Continous Integration tests that include the `containerized-test`, but
also additional functionality tests that are defined under the `e2e/`
directory.
### Code contribution workflow ### Code contribution workflow
ceph-csi repository currently follows GitHub's ceph-csi repository currently follows GitHub's