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

Add --no-cov to vscode test launch config to make debugging work #151

Closed GDYendell closed 7 months ago

GDYendell commented 7 months ago

I think this was lost in the conversion from the skeleton, unless it was removed for a reason?

coretl commented 7 months ago

It was removed from the pytest default ini args (in pyproject.toml) and inserted in tox: https://github.com/DiamondLightSource/python-copier-template/blob/3462fe957ee1f1e2c9495b413a965719f3103460/template/pyproject.toml.jinja#L97

This means that you only get coverage if you do tox -e tests, so vscode launch config shouldn't be needed...

GDYendell commented 7 months ago

Ahh, yes OK that does work for me. In which case @DominicOram you just need to update to the latest copier and it should work.