I owe everyone a module development guide and this is a part of that.
If you would like to test a module outside of ansible, this script will help you do it. It not only runs the script
but also validates that your output is parseable by Ansible.
USAGE FROM CHECKOUT:
./hacking/test-module ./library/command /bin/sleep 3
./hacking/test-module ./library/service name=httpd state=running
ETC
(NOTE: the async_wrapper module is not testable this way)
This does not replace the unit tests and any module in core should try to have some. It is, however, a really
good aid to development.
–Michael