How to best generate coverage report for mixed Python, CPython C-API extensions

Issue #626 closed
Christoph Reiter created an issue

This is more of a support request, I hope that's OK.

I work on two projects which are CPython extensions partially written in Python and C, using the Python C API. To get a nicely unified coverage report over all Python versions on Windows/macOS/Linux, I currently use coverage.py and gcov and send it to codecov.io, which looks something like this: https://codecov.io/gh/pygobject/pycairo

Question:

Does anyone know if there is a nice way to get something similar without using external services and without having separate html reports?

(Would it be possible to import gcov or the xml format into the internal coverage.py format and then merge everything to one report?)

Comments (4)

  1. Christoph Reiter reporter

    No idea. I only found that every tool can export to the cobertura xml format but I didn't find anything which can actually work with it (merge, create reports).

    I just went with coverage.py+lcov for now and let CI merge things and push it to gitlab pages: https://gnome.pages.gitlab.gnome.org/pygobject/ And I'm quite happy with that now.

    Feel free to close this.

  2. Log in to comment