# unit tests as playbook in /test?

**URL:** <https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915>\
**Category:** Ansible Developer\
**Created:** [November 15, 2013, 1:22pm UTC](https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915 "2013-11-15T13:22:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rene\_Moser](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Post date:** [November 15, 2013, 1:22pm UTC](https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915/1 "2013-11-15T13:22:50Z")

</div>

Hi

I did a PR ([https://github.com/ansible/ansible/pull/4914](https://github.com/ansible/ansible/pull/4914)) for 2 fixes in host module and wondered If and where I should put my test playbook. Is there any place in /test for such “test playbooks”?

[https://gist.github.com/resmo/7484178](https://gist.github.com/resmo/7484178)

Thanks and regards  
René

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [November 15, 2013, 3:02pm UTC](https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915/2 "2013-11-15T15:02:52Z")

</div>

Take a look through some of the existing tests, as they do include some play books. I merged a PR for recursive copy recently which is a good example …

TestPlaybook.py/def test\_recursive\_copy

---

<div class="post-metadata">

**Author:** ![tannerjc](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/tannerjc/32/985_2.png) [@tannerjc](https://forum.ansible.com/u/tannerjc)\
**Post date:** [November 15, 2013, 10:24pm UTC](https://forum.ansible.com/t/unit-tests-as-playbook-in-test/13915/3 "2013-11-15T22:24:58Z")

</div>

Take a look through some of the existing tests, as they do include some play books. I merged a PR for recursive copy recently which is a good example …

TestPlaybook.py/def test\_recursive\_copy
