Adding integration tests to a collection

This section describes the steps to add integration tests to a collection and how to run them locally using the ansible-test command.

See also

Unit Testing Ansible Modules

Unit testing Ansible modules

pytest

Pytest framework documentation

Testing Ansible

Ansible Testing Guide

Add unit tests to a collection

Unit testing for collections

Integration tests

Integration tests guide

Testing collections

Testing collections

Resource module integration tests

Resource module integration tests

How to test a collection PR

How to test a pull request locally