cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
12.08k stars 2.89k forks source link

Add test to ensure that generated app runs and has 100% test coverage #810

Open ssteinerx opened 8 years ago

ssteinerx commented 8 years ago

As per a note on the Django 1.10 release, pulling out into its own issue.

The tests passed, but the generated app wouldn't run on the 1.10 release.

Also, testing the claim of "generating a Django project that has 100% test coverage out of the box."

IOW, not cookiecutter-django itself, but the project generated therefrom.

So, as part of the tests, we generate a project, then ensure that it runs and has 100% test coverage.

browniebroke commented 2 years ago

I guess we could start by adding a line like this at the end of our test scripts: python -m coverage report --fail-under=100

Source: https://hynek.me/articles/ditch-codecov-python/