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

<p>Now when you run&nbsp;<code>ng test --watch=false --code-coverage</code>&nbsp;you will get a text summary in the console about your code coverage now. Hurrah!</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:667/1*1LBKCllwrvpjZhgZYXcaXw.png" style="height:116px; width:667px" /></p> <p>100%.</p> <p>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.</p> <p><a href="https://medium.com/@caleb.ukle/code-coverage-badge-with-angular-karma-istanbul-on-gitlab-ci-9611b69ad7e"><strong>Learn More</strong></a></p> <p>&nbsp;</p>
Tags: Coverage Badge