Skip to content

--cov-precision does not affect report #674

Closed
@not-my-profile

Description

@not-my-profile

When you configure the following in pyproject.toml:

[tool.coverage.report]
precision = 2

you get the output:

Name                Stmts   Miss   Cover
----------------------------------------
mypkg/__init__.py       0      0 100.00%
mypkg/bar.py            4      4   0.00%
mypkg/foo.py            2      2   0.00%
----------------------------------------
TOTAL                   6      6   0.00%

However when you don't configure that and only use the recently introduced --cov-precision option you still get:

Name                Stmts   Miss  Cover
---------------------------------------
mypkg/__init__.py       0      0   100%
mypkg/bar.py            4      4     0%
mypkg/foo.py            2      2     0%
---------------------------------------
TOTAL                   6      6     0%

That is the --cov-precision option doesn't affect the generated reports at all.

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