coveragepy / coveragepy/django_coverage_plugin
Custom template tags not covered
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 202
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
I have some custom template tags and filters. When I disable django_coverage_plugin or downgrade to version 1.3.1, all the code in the templatetags directory is marked as covered, as expected, but as of version 1.4.1 only the function body is marked as covered (which is sort of impossible):
https://coveralls.io/builds/9886572/source?filename=busstops%2Ftemplatetags%2Furlise.py
I'm using Django 1.10.5 and coverage.py 4.3.4.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Coveralls source for busstops/templatetags/urlise.py and compare coverage behavior between django_coverage_plugin 1.3.1 and 1.4.1 under Django 1.10.5 and coverage.py 4.3.4. Reproduce the report and verify that custom template tags and filters, including their function bodies, are marked as covered as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100