Skip to content

foo.test.py confuses HTML reporting #46

@nedbat

Description

@nedbat

Julian (http://somethinkodd.com/oddthinking) reports:

On my project, I put the test cases for foo.py in foo.test.py. I don't know why I do this; it is just what my predecessor did.

In this case, in the HTML index page, clicking on the foo.py line takes you to the foo.test.py coverage instead.

If I rename the test cases to foo_test.py, it functions perfectly, and is quite an eye-opener to the amount of code never executed.

(This bug-report can be filed under "If it hurts when you do that, then don't do that," but I thought I would let you know.)


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghtml

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions