Hi all,
Does anyone know an easy way to measure the code coverage of the Guix
test suite?
I'm particularly interested in the branch coverage, that is, how
different arguments interact with each other, and which combinations are
tested by the test suite.
There is a "Code Coverage" section in the Guile manual [1], but that
seems unused in Guix. I suppose I could add that functionality to the
start of the `.scm` tests.
However, I don't see how I could use that code coverage functionality
with the `.sh` tests that we have in the repository. Maybe I could add
that coverage logic to all Guix scripts?
I have a Python / C background, and there it is easy to measure the
coverage without actually editing the code; so I'm hoping that is
possible with Guile too; anyone an idea?
Hugo
[1] https://doc.guix.gnu.org/guile/latest/en/html_node/Code-Coverage.html