+

Search Tips   |   Advanced Search

Sanity Tests

Topics

Sanity tests are made up of scripts and tools used to perform static code analysis. The primary purpose of these tests is to enforce Ansible coding standards and requirements.

Tests are run with ansible-test sanity. All available tests are run unless the --test option is used.


How to run

To run sanity tests using docker, always use the default docker image by passing the --docker or --docker default argument.

When using docker and the --base-branch argument, also use the --docker-keep-git argument to avoid git related errors.


Available Tests

Tests can be listed with ansible-test sanity --list-tests.

See the full list of sanity tests, which details the various tests and details how to fix identified issues.