Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Test coverage configuration duplicated #54

Open
dstansby opened this issue Mar 30, 2023 · 0 comments
Open

[BUG] Test coverage configuration duplicated #54

dstansby opened this issue Mar 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dstansby
Copy link
Contributor

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.

@dstansby dstansby added the bug Something isn't working label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant