How to Add a Test Coverage Report to an Angular CLI Project

Angular CLI has test coverage reporting somewhat built in.

First install the dependencies.

Then run ng test.

Then run the server that shows you your report.

You should see something like this.

One thought on “How to Add a Test Coverage Report to an Angular CLI Project

  1. Benjamin Alvarez

    Excellent contribution, thank you very much for taking the time to show us how to use this tool.

    when i try to run the server I can not see the report as samples in the guide.

    I try this
    ng serve -c-1 -o -p 9875 ./coverage

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *