Top "Karma-coverage" questions

A plugin for Karma (code test runner) that generate code coverage.

Testing error case with observables in services

Let's say I have a component that subscribes to a service function: export class Component { ... ngOnInit() { this.service.doStuff().subscribe( (…

angular typescript karma-coverage angular2-testing angular2-observables
How do I exclude files from karma code coverage report?

Is there a way to exclude files from code coverage report for the karma coverage runner https://github.com/karma-runner/…

karma-runner karma-jasmine karma-coverage
No binary for PhantomJS browser on your platform. Please, set "PHANTOMJS_BIN" env variable

My package.json looks like this.. "karma-phantomjs-launcher": "^0.1.4", "karma-safari-launcher": "^0.1.1", "karma-sinon-chai": "~0.2.0", "karma-spec-reporter": "~0.0.16", "mocha": "~1.20.1" my npm version is 2.2.0 whay am I getting this …

phantomjs karma-runner mocha-phantomjs karma-mocha karma-coverage
Code Coverage for Typescript using karma-jasmine and istanbul

I am trying to get the Code Coverage for my typescript Code in karma framework using Istanbul in karma.conf …

typescript istanbul karma-coverage
What are the differences between karma reporters?

I am looking at karma's reporter configuration. There are some possible reporters: progress, dots, growl, coverage. I don't find any …

karma-runner karma-coverage
Cannot read property 'params' of undefined in angular 2

We have used route param in our code. But while performing unit testing in jasmine karma we are getting following …

unit-testing angular karma-jasmine karma-coverage routeparams
Testing observable object angular 2 karma

I'm working on my unit test cases for Angular 2 with Karma, I got stuck with one of a function where …

unit-testing angular karma-jasmine angular2-services karma-coverage
Sonarqube does not retrieve my JavaScript coverage from LCOV

I have an application with the following structure: my-application +- pom.xml +- app | +- scripts | | +- app.js | | +- **/*.…

javascript sonarqube code-coverage lcov karma-coverage
else path not taken in unit testing

I am working on angular 6 I don't have any else statement in my below code.But I am unable to …

angular typescript unit-testing jasmine karma-coverage
Angular 11 Unit Test Code Coverage is Now Breaking

Prior to upgrading to Angular 11, I ran my unit tests with code coverage via the following command: ng test --project …

unit-testing angular-cli karma-jasmine angular11 karma-coverage