# Framework/module to test Ansible code

**URL:** <https://forum.ansible.com/t/framework-module-to-test-ansible-code/20613>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [February 18, 2016, 5:58am UTC](https://forum.ansible.com/t/framework-module-to-test-ansible-code/20613 "2016-02-18T05:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajat\_Govind\_Chandak](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@Rajat\_Govind\_Chandak](https://forum.ansible.com/u/Rajat_Govind_Chandak)\
**Post date:** [February 18, 2016, 5:58am UTC](https://forum.ansible.com/t/framework-module-to-test-ansible-code/20613/1 "2016-02-18T05:58:10Z")

</div>

Hey all,

I am working with Ansible to spinup and provision intsances on AWS EC2. Is there any framework or module to test my ansible code, so that I can ensure that it is working properly as desired ?

Thanks

---

<div class="post-metadata">

**Author:** ![Benjamin\_Redling](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@Benjamin\_Redling](https://forum.ansible.com/u/Benjamin_Redling)\
**Post date:** [February 18, 2016, 9:56am UTC](https://forum.ansible.com/t/framework-module-to-test-ansible-code/20613/2 "2016-02-18T09:56:08Z")

</div>

Are you asking how you can avoid the following?  
--check, a test + staging setup, monitoring, writing (ansible) tasks  
that test for certain state, write/install/autodiscover a check in your  
monitoring solution of choice, log file analysis.

Do you want to disrupt the Ops job market or are you searching for a  
specific aspect of testing?

For everything hidden \_behind\_ ansible's YAML files:  
[http://docs.ansible.com/ansible/developing\_modules.html#building-testing](http://docs.ansible.com/ansible/developing_modules.html#building-testing)  
[http://docs.ansible.com/ansible/developing\_test\_pr.html](http://docs.ansible.com/ansible/developing_test_pr.html)

Benjamin
