From d1de33fb3e7b8e1744fd9e43f0dcb4b0ffb8b7d7 Mon Sep 17 00:00:00 2001 From: Audrey Roy Greenfeld Date: Wed, 11 Nov 2015 21:07:16 -0800 Subject: [PATCH] Use django_coverage_plugin to check template test coverage. --- CHANGELOG.md | 4 ++++ {{cookiecutter.repo_name}}/.coveragerc | 2 ++ {{cookiecutter.repo_name}}/requirements/local.txt | 1 + {{cookiecutter.repo_name}}/requirements/test.txt | 1 + 4 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d24ec37b..9bbcbbf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All enhancements and patches to cookiecutter-django will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [2015-11-11] +### Added +- Added django_coverage_plugin to measure Django template coverage (@audreyr) + ## [2015-11-09] ### Changed - Now using py.test for our test suite!! (@hackebrot) diff --git a/{{cookiecutter.repo_name}}/.coveragerc b/{{cookiecutter.repo_name}}/.coveragerc index 0354b3c1..525cd2ff 100644 --- a/{{cookiecutter.repo_name}}/.coveragerc +++ b/{{cookiecutter.repo_name}}/.coveragerc @@ -1,3 +1,5 @@ [run] include = {{cookiecutter.repo_name}}/* omit = *migrations*, *tests* +plugins = + django_coverage_plugin diff --git a/{{cookiecutter.repo_name}}/requirements/local.txt b/{{cookiecutter.repo_name}}/requirements/local.txt index 883903ba..a9b63d44 100644 --- a/{{cookiecutter.repo_name}}/requirements/local.txt +++ b/{{cookiecutter.repo_name}}/requirements/local.txt @@ -1,6 +1,7 @@ # Local development dependencies go here -r base.txt coverage==4.0.2 +django_coverage_plugin==1.0 Sphinx django-extensions==1.5.9 Werkzeug==0.10.4 diff --git a/{{cookiecutter.repo_name}}/requirements/test.txt b/{{cookiecutter.repo_name}}/requirements/test.txt index 6d70d4bc..b12b4d23 100644 --- a/{{cookiecutter.repo_name}}/requirements/test.txt +++ b/{{cookiecutter.repo_name}}/requirements/test.txt @@ -8,6 +8,7 @@ psycopg2==2.6.1 {%- endif %} coverage==4.0.2 +django_coverage_plugin==1.0 flake8==2.5.0 django-test-plus==1.0.9 factory_boy==2.6.0