Is there a library/framework that enables me to do unit testing to Ansible playbooks?

58 views
Skip to first unread message

Sean

unread,
Mar 23, 2015, 7:53:50 PM3/23/15
to ansible...@googlegroups.com
In Chef's world, there exists ChefSpec, which basically enables writing and running of 'unit-tests' against the Chef Cookbooks.

Is there a counterpart in Ansible community? (If not, how hard to write one as an engineering exercise?)

Thanks,
Sean

Brian Coca

unread,
Mar 23, 2015, 8:56:54 PM3/23/15
to ansible...@googlegroups.com
if you look at test/ in the repo you'll see we use ansible itself to
test, mostly centered around the assert module.

--
Brian Coca

Jonathan Davila

unread,
Mar 24, 2015, 9:39:24 AM3/24/15
to ansible...@googlegroups.com
To add to Brian's response, here is a link to the documentation where a few strategies are enumerated along with example http://docs.ansible.com/test_strategies.html
Reply all
Reply to author
Forward
0 new messages