Test Coverage Parsing

If you use Gitlab CI (and I suggest you do if you are using Gitlab already), you may have noticed in the settings that there is an item titled “Test coverage parsing”.

It looks a little something like this:Screen Shot 2015-04-12 at 10.09.51 PM

This feature allows you to give Gitlab CI a regex that will parse the output of your test runner and grab what percentage of your code is covered by your unit tests. The resulting percentage will then display for each individual build in your list of builds.




I know for me, having this displayed in my face helps add that extra bit of incentive to write some more tests.

Read More