Code Coverage Badge with Angular(Karma/Istanbul) on Gitlab Pipelines

Now when you run ng test --watch=false --code-coverage you will get a text summary in the console about your code coverage now. Hurrah!

100%.

Alright, so now your project is configured to display the code coverage in the console. This is an important step because Gitlab uses Ruby Regular Expressions to capture the output of the pipeline console. No console output means no code coverage badge.

Learn More

 

Tags: Badge Coverage