coveragepy / coveragepy/django_coverage_plugin

"Disabling plugin" exception is invisible in test runners

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
202
Forks
38
PR merge metrics
No merged PRs in 30d

Description

If the Django settings don't enable template debugging, the plugin will disable itself and raise an exception. But some test runners (at least pytest) don't display the exception, so it's hard to know why template coverage isn't happening.

Details are at the end of #18 .

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the details referenced at the end of issue #18, then reproduce the disabled-plugin case with pytest when Django template debugging is not enabled. Trace why the exception is not shown by the test runner; done means the reason for missing template coverage is visible to users.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.