You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A `coverage.py`_ plugin to measure test coverage of Django templates.
28
28
29
-
Supported Python versions: 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8.
29
+
Supported Python versions: 2.7, 3.6, 3.7, 3.8 and 3.9.
30
30
31
-
Supported Django versions: 1.8, 1.11, 2.0, 2.1, 2.2 and 3.0.
31
+
Supported Django versions: 1.8, 1.11, 2.x and 3.x.
32
32
33
-
Supported coverage.py version 4.x or 5.x.
33
+
Supported coverage.py versions: 4.x or higher.
34
34
35
35
The plugin is pip installable::
36
36
@@ -39,8 +39,7 @@ The plugin is pip installable::
39
39
To run it, add this setting to your ``.coveragerc`` file::
40
40
41
41
[run]
42
-
plugins =
43
-
django_coverage_plugin
42
+
plugins = django_coverage_plugin
44
43
45
44
Then run your tests under `coverage.py`_.
46
45
@@ -51,21 +50,24 @@ the plugin to identify untested templates.
51
50
If you get a :code:`django.core.exceptions.ImproperlyConfigured` error,
52
51
you need to set the :code:`DJANGO_SETTINGS_MODULE` environment variable.
53
52
54
-
If you get :code:`django_coverage_plugin.plugin.DjangoTemplatePluginException: Template debugging must be enabled in settings`, change your TEMPLATES setting:
53
+
Template coverage only works if your Django templates have debugging enabled.
54
+
If you get :code:`django_coverage_plugin.plugin.DjangoTemplatePluginException:
55
+
Template debugging must be enabled in settings`, or if no templates get
56
+
measured, make sure you have :code:`TEMPLATES.OPTIONS.debug` set to True in
0 commit comments