TeamMaestro / angular-native-seed

Build web apps and NativeScript applications from one codebase using the AngularCLI.
265 stars 71 forks source link

How to run code coverage? #48

Closed hatemhosny closed 7 years ago

hatemhosny commented 7 years ago

How can I run and view results of test code coverage?

thank you

hatemhosny commented 7 years ago

I figured that out. thank you...

In case someone is looking for that, run: ng test --code-coverage

you will find a new folder "/coverage" open "/coverage/index.html" in the browser for results (just double click on it)

click on links to the files to see code uncovered with tests

I hope this can help somebody