Skip to content

CoverageException: Can't add file tracer data for unmeasured file #69

Closed
@suda

Description

@suda

A combination of django, pytest, pytest-cov, django-coverage-plugin and pytest-django seems to interact with each other causing CoverageException when tests execute code that renders templates. My guess is it's somewhere in django-coverage-plugin as disabling it, removes the exception.

I created an example Django project that exhibits this issue: https://github.com/suda/pytest_django_coverage_test
Not sure if it's a bug or misconfiguration but I hope this repo will be useful for figuring out the root cause 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions