I was able to generate code coverage for "normal runs" of the roc cli like roc build myFile.roc
. I love to instantly see if a function was used and what branches were taken when debugging something :) . I'll write up how you can do this and add it to the repo.
https://github.com/roc-lang/roc/pull/7125
After using the code coverage for a while, I have to say I really love it. I highly recommend using it when debugging the compiler!
I wonder if that would help for any of the morphic stuff...
You mean like the performance issue here?
Yeah
FYI if any of you ever want to know how many times certain lines of code are being run during a specific command, you can use the html report produced by the code coverage tool:
Screenshot from 2024-10-26 19-55-56.png
Last updated: Jul 06 2025 at 12:14 UTC