Skip to content

A coverage.py plugin to measure the coverage of Jinja2 templates

License

Notifications You must be signed in to change notification settings

MrSenko/coverage-jinja-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jinja2 Coverage Plugin

A coverage.py plugin to measure the coverage of Jinja2 templates.

Install

$ pip install jinja_coverage

Configuration

Edit your .coveragerc to contain:

[run]
plugins =
    jinja_coverage

[jinja_coverage]
template_directory = path/to/templates

Known issues

This plugin appears to be collecting and reporting coverage information correctly. However Jinja2 does not provide enough information to map the collected data to the appropriate lines in the HTML template. For more information see Jinja #674.

Testing

$ pip install -r requirements.txt
$ python -m unittest discover

About

A coverage.py plugin to measure the coverage of Jinja2 templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published