coverage-py: is there something special I need to ...
# general
f
coverage-py: is there something special I need to do, to generate the coverage reports via pants ? I have this
Copy code
[coverage-py]
report = [ "html", "console" ]
in
pants.toml
and I tried having both no config in
pyproject.toml
and added a few basic examples. I am expecting a report generated to the dist folder
Copy code
--coverage-py-output-dir=<str>
  PANTS_COVERAGE_PY_OUTPUT_DIR
  output_dir
      default: {distdir}/coverage/python
      current value: {distdir}/coverage/python
I am just running
pants test ::
and expeciting reports 🙂 do I have it wrong ?
e
Then, to activate coverage on a particular test goal run, say: https://www.pantsbuild.org/docs/reference-test#use_coverage