Sad to see an AI suggest these entries for a [tool.coverage.run] section: omit = tests/*, */__init__.py, */__main__.py, */cli.py, */setup.py, */__pycache__/*, */test_*.py nedbatchelder.com/blog/202008/...
2 reposts10 likes
Sad to see an AI suggest these entries for a [tool.coverage.run] section: omit = tests/*, */__init__.py, */__main__.py, */cli.py, */setup.py, */__pycache__/*, */test_*.py nedbatchelder.com/blog/202008/...
2 reposts10 likes
I usually exclude them and then add an extra step in CI to ensure 100% test coverage on tests. I learnt this trick from youtu.be/70T6OxKwxm0
That's good to ensure the tests are 100% even if the product is not. It might be easier to run everything just once and then assess the results: nedbatchelder.com/blog/202111/...