DiamondLightSource / python-copier-template

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

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

Closed GDYendell closed 2 months ago

GDYendell commented 3 months ago

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

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