HackSoftware / cookiecutter-django-ansible

Powered by Cookiecutter, Cookiecutter Django Ansible is a framework for jumpstarting an ansible project for provisioning a server that is ready for your cookiecutter-django application.
MIT License
71 stars 8 forks source link

Test the ansible code #27

Open Ivaylo-Bachvarov opened 8 years ago

Ivaylo-Bachvarov commented 8 years ago

What to test?

Like every testing strategy, we need to know what to test.

I want to generate .travis.yml file for the Ansible project.

I want to improve the cookiecutter-django-ansible's .travis.yml file to check if the generated code is ok.

Reference: https://www.michaelrigart.be/en/blog/testing-ansible-roles-with-travis-ci.html

Ivaylo-Bachvarov commented 8 years ago

It seems like a good idea to have an integration test with the following scenario:

  1. Cookiecut a django project
  2. Cookiecut an ansible project
  3. Deploy the project

This may test if the cookiecutter-django-asnible is compatible with cookiecutter-django