Skip to content

[BUG] Test coverage configuration duplicated #54

@dstansby

Description

@dstansby

Describe the bug
Not really a major bug, but the confiuration for collecting test coverage with pytest is duplicated in two places:

To Reproduce

addopts = "--cov={{cookiecutter.module_name}}"

pytest -v --color=yes --cov={{cookiecutter.module_name}} --cov-report=xml

Expected behaviour
Configuration only in one place. I'd suggest keeping it in pyproject.toml, as then the coverage configuration is accesible outside of using tox, but will still be used by tox.

Log file
Please attach the log file if relevant.

Screenshots
If applicable, add screenshots to help explain your problem.

Computer used (please complete the following information):

  • OS: [e.g. Linux, Windows, macOS] For macOS, please specify if you have an Intel or M1 CPU (M1 is likely if your mac is new).
  • Version [e.g. 18.04]
  • Hardware specs [e.g. 128 GB RAM, Xeon 4114 CPU].

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions