Are there any successful examples of a python project with a folder structure that includes a src and tests folder at the root, which install the source to site-packages prior to running tests/coverage, and then submit the report to code climate?
I'm currently unable to get this working due to the following issues:
Running pytest with --cov=<package name> results in an invalid coverage report
Running pytest with --cov=<project directory>/src/<package name> results in a coverage report which has 0% coverage because it's looking for coverage in the current directory, whilst the source that is actually executed is in site-packages
Hi there
Are there any successful examples of a python project with a folder structure that includes a
src
andtests
folder at the root, which install the source tosite-packages
prior to running tests/coverage, and then submit the report to code climate?I'm currently unable to get this working due to the following issues:
--cov=<package name>
results in an invalid coverage report--cov=<project directory>/src/<package name>
results in a coverage report which has 0% coverage because it's looking for coverage in the current directory, whilst the source that is actually executed is insite-packages
Any examples would be incredibly helpful