Skip to content

Mysterious code coverage drop #3333

@dstansby

Description

@dstansby

At some point between July 14th and July 21st code coverage dropped from 95% to 60%. We didn't suddenly remove a load of tests or add a load of untested code, so this must be an issue withhow code coverage is being collected, perhaps due to a new version of a test dependency? This should be fixed.

@d-v-b had some potential insight in #3318 (comment):

The way our code coverage works, class and function definitions are not counted as tested if they are imported by pytest prior to running actual tests. Pytest imports from a lot of our library due to fixtures defined in conftest.py, which is why our coverage reports in CI report function definitions as uncovered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions