# Reference on how to test an Ansible Runner project

**URL:** <https://forum.ansible.com/t/reference-on-how-to-test-an-ansible-runner-project/5294>\
**Category:** Get Help\
**Tags:** ansible-runner\
**Created:** [May 5, 2024, 7:17pm UTC](https://forum.ansible.com/t/reference-on-how-to-test-an-ansible-runner-project/5294 "2024-05-05T19:17:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShanDesai](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@ShanDesai](https://forum.ansible.com/u/ShanDesai)\
**Post date:** [May 5, 2024, 7:17pm UTC](https://forum.ansible.com/t/reference-on-how-to-test-an-ansible-runner-project/5294/1 "2024-05-05T19:17:16Z")

</div>

I have a repository with the structure same as that of the Directory Hierarchy as that mentioned by the Ansible Runner documentation.

The project is all playbooks and no roles. I have a `tests` directory where each subdirectory within it is a testcase which performs the following:

1. run the playbook to be tested
2. perform assertion tests

There is no Molecule or `ansible-test` here because the playbooks rely on mostly either `builtin` or some `community.docker` or `community.general` collections.

Each test case also has the same Directory Hierarchy Ansible Runner structure since it reflects an _isolated_ test for the playbook under test.

The only thing I am currently _hacking_ is copying the core `inventory` directory into each test case and then running the tests via a bash script which essentially is `ansible-runner run`.

I am looking for references or examples of how some Ansible Runner projects can be programmitcally tested either by using python test frameworks or something that is considered best practice in the ansible world
