LcovEx: lcov file generator for elixir projects

After a while I found kinda inconvenient to open and check the coverage default reports every time I change a test, so I looked for some inline alternatives for vscode, and I found the Coverage Gutters extension. To work it needs a lcov file, so that’s why I made LcovEx:

For now you need to config it as the coverage module tool, but I plan to make it work as an independent task later on.

If it’s useful to you give it a go and let me know what you think! And please let me know if you used it with other editors/extensions/tools.


I confirmed that it also works with Atom’s lcov-info extension, but it requires you to change the output folder to "coverage", so then your file is generated at coverage/

LcovEx 0.2.0 released!

Now you only need to run mix lcov and it will make the file for standard projects, no further configuration needed.

If you used it before you now need to also allow the lib to run in the :dev env, as it does some tricks with the mix.exs file under the hood:

{:lcov_ex, "~> 0.2", only: [:dev, :test], runtime: false}

Share the news!
Thank you!


LcovEx 0.2.2 released!

Now it works for umbrella projects without any weird workarounds.

Enjoy your testing!

1 Like