DiamondLightSource / python-copier-template

Diamond's opinionated copier template for pure Python projects managed by pip
Apache License 2.0
5 stars 3 forks source link

Enable debug on tests #157

Closed abbiemery closed 6 months ago

abbiemery commented 6 months ago

Due to the following issue, this line is needed to debug tests when you have coverage on.

https://github.com/microsoft/vscode-python/issues/693

coretl commented 6 months ago

Actually this is a common pitfall when converting from skeleton to copier, the --cov should be applied in the tox.ini section, not in the pytest.addopts section. When converting from skeleton to copier this makes a merge conflicts and is often left in both sections. The fix is to delete the line with --cov in from the pytest.addopts section.