Skip to content

Coverage report missed «import time» statements on pytest plugin project #359

Closed

Description

@pohmelie

I write a plugin for pytest. Register it with pytest entrypoint in my setup.cfg file. Wrote some tests which works as expected, but coverage report shows that missed lines are those which evaluates at import time (decorators, def, async def, imports, etc.).
AFAIR, since this is a plugin for pytest and it is actually installed (in editable mode -e) import happens on pytest load and not counts by coverage plugin.
I hope this is known problem and there is an easy solution, since other plugin projects works somehow with coverage.

Activity

  1. pohmelie commented on Nov 8, 2019

    @pohmelie
    Author

    Ok, got it. Thank you for fast response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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