1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 10:47:23 +00:00

README: add separate section about testing

This commit is contained in:
Markus Lehtonen 2019-06-27 06:31:32 +03:00
parent b5d71f421d
commit f3c74b6534

View file

@ -634,6 +634,21 @@ Or to specify a build tool different from Docker:
make IMAGE_BUILD_CMD="buildah bud"
```
### Testing
Unit tests are automatically run as part of the container image build. You can
also run them manually in the source code tree by simply running:
```
make test
```
End-to-end tests are built on top of the e2e test framework of Kubernetes, and,
they required a cluster to run them on. For running the tests on your test
cluster you need to specify the kubeconfig to be used:
```
make e2e-test KUBECONFIG=$HOME/.kube/config
```
## Targeting Nodes with Specific Features
Nodes with specific features can be targeted using the `nodeSelector` field. The