You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does the pytester plugin run subprocesses? It could be that they're all writing coverage information into the same file, and overwriting each other...
If that's it, then the solution is to add parallel = True to the .coveragerc, and then run coverage combine between running the tests and uploading to pypi. Trio does this, so you can check its .coveragerc, .appveyor.yml, ci/travis.sh to see the details.
I've got the trouble: we are testing a pytest plugin (i.e. pytest-trio) with pytest, using another pytest plugin (pytest-cov) so coverage work is started after pytest-trio is loaded.
The solution is to start the coverage before pytest-trio is loaded, so before pytest is called:
Activity
touilleMan commentedon Dec 15, 2017
I've reproduce this on local, so it's not codecov's fault but on coverage/pytest-cov side.
njsmith commentedon Dec 15, 2017
Does the pytester plugin run subprocesses? It could be that they're all writing coverage information into the same file, and overwriting each other...
If that's it, then the solution is to add
parallel = Trueto the.coveragerc, and then runcoverage combinebetween running the tests and uploading to pypi. Trio does this, so you can check its.coveragerc,.appveyor.yml,ci/travis.shto see the details.touilleMan commentedon Dec 15, 2017
I've got the trouble: we are testing a pytest plugin (i.e.
pytest-trio) with pytest, using another pytest plugin (pytest-cov) so coverage work is started afterpytest-triois loaded.The solution is to start the coverage before
pytest-triois loaded, so before pytest is called:njsmith commentedon Dec 15, 2017