Skip to content

Commit

Permalink
Adding some information about unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-checkmk committed Sep 26, 2024
1 parent b6afd7e commit 4c6a63d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,16 @@ To test our roles, we use [Molecule](https://www.jeffgeerling.com/blog/2018/test

### Unit

There are currently no unit tests.
Currently we're only unit testing the inventory plugin.
Like with integration tests, we recommend testing inside docker, so modification of your local system isn't necessary.

To run all tests locally, you can use following command:

ansible-test units --docker

For a single unit test, this can be started with this command:

ansible-test units --docker tests/unit/plugins/inventory/test_checkmk.py

## Releasing this collection

Expand Down

0 comments on commit 4c6a63d

Please sign in to comment.