Description
Via slack:
In this case, I got pytest-style tests working using https://github.com/caseyduquettesc/rules_python_pytest. It works, and I can even set up a github actions module to list the test results; all happy. So of course I'm greedy and want to use it for coverage too 🙂 I know the "approved" answer for Python coverage (the "modified version of coverage.py") but passing the "--cov" and "--cov-report=xml" gives me the nice test output Coverage XML written to file coverage.xml.
...of course that file is nowhere to be found; bazel-out obligingly has an appropriate test.xml (because of the argument --junit-xml=$$XML_OUTPUT_FILE to the pytest rule). And the file probably is being generated but somehow not being exported, and I'm new enough to bazel to not quite understand what's happening (or not).
Where should I start looking?
Related issues:
bazel-contrib/rules_python#43
bazelbuild/bazel#10660