# Pastebin 0UbWC4dd Unit tests ---------- You can add unit tests for your module in ``./test/units/modules``. You can run these in a container as well. First, set up your development environment: ``. hacking/env-setup`` Then run the tests you want to run in the container of your choice: ``ansible-test --docker default units MODULE_NAME`` ``ansible-test --venv units MODULE_NAME`` Ansible uses pytest for unit testing. You can run pytest against a single test module (provide the path to the test module appropriately): ``$ pytest -r a --cov=. --cov-report=html --fulltrace --color yes test/units/modules/.../test/my_test.py``