damp-address-92963
09/23/2020, 3:02 PMhundreds-father-404
09/23/2020, 3:29 PMdamp-address-92963
09/23/2020, 4:49 PMhundreds-father-404
09/23/2020, 4:52 PMauto
never worked very well; it was confusing and the heuristic didn’t work with certain project layouts. The coverage
field on python_tests
target was tedious.
Instead, Pants now much more closely aligns to how coverage would work if you didn’t use Pants. See https://www.pantsbuild.org/docs/how-to-upgrade-pants-2-0#coveragepy-support-was-redesigned-v1-engine-vs-v2-engine
Regarding pytest --cov
, that is only for us to generate the individual .coverage
files for each distinct test you run. We then use coverage.py
to merge it all into a single report (or single .coverage
file)damp-address-92963
09/23/2020, 6:06 PMhundreds-father-404
09/23/2020, 6:09 PMdependencies
field of BUILD files because Pants will analyze your import statements
The upgrade guide will hopefully help, and we’re also really happy to help with any challenges you run into or feedback you have.damp-address-92963
09/23/2020, 6:28 PMhundreds-father-404
09/23/2020, 6:29 PM