cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

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

Open ssteinerx opened this issue 7 years ago • 1 comments

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.

ssteinerx avatar Sep 20 '16 20:09 ssteinerx

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/

browniebroke avatar Dec 20 '21 18:12 browniebroke