mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
24 lines
479 B
Markdown
24 lines
479 B
Markdown
|
# Test
|
|||
|
|
|||
|
## Running tests
|
|||
|
|
|||
|
### Unit tests
|
|||
|
|
|||
|
Running unit tests with Bazel:
|
|||
|
|
|||
|
```sh
|
|||
|
bazel test //...
|
|||
|
```
|
|||
|
|
|||
|
### Integration tests
|
|||
|
|
|||
|
You can run all integration like this:
|
|||
|
|
|||
|
```sh
|
|||
|
ctest -j `nproc`
|
|||
|
```
|
|||
|
|
|||
|
You can limit the execution of tests to specific targets with e.g. `ctest -R integration-node-operator`.
|
|||
|
|
|||
|
Some of the tests rely on libvirt and won’t work if you don’t have a virtualization capable CPU. You can find instructions on setting up libvirt in our [QEMU README](qemu.md).
|