DiamondLightSource / python-copier-template

Replacing Diamond Light Source's python3-pip-skeleton using Copier
Apache License 2.0
4 stars 2 forks source link

Enable debug on tests #157

Closed abbiemery closed 2 months ago

abbiemery commented 2 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 2 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.