Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ariya/coverage-jasmine-istanbul-karma
Jasmine code coverage example via Istanbul and Karma
https://github.com/ariya/coverage-jasmine-istanbul-karma
Last synced: 3 months ago
JSON representation
Jasmine code coverage example via Istanbul and Karma
- Host: GitHub
- URL: https://github.com/ariya/coverage-jasmine-istanbul-karma
- Owner: ariya
- Archived: true
- Created: 2013-10-03T05:45:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T15:04:38.000Z (almost 8 years ago)
- Last Synced: 2024-06-22T21:12:01.302Z (6 months ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 23
- Watchers: 2
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo contains an example setup for tracking code coverage of [Jasmine](https://jasmine.github.io/) tests via [Istanbul](http://gotwarlost.github.io/istanbul/) and [Karma](http://karma-runner.github.io/).
Run the following:
```
npm install
npm test
```and then open the code coverage report under the subdirectory `coverage`.
The tests are executed using [PhantomJS](http://phantomjs.org). It is easy to add [other browsers](http://karma-runner.github.io/0.10/config/browsers.html) as well
Using Grunt? Apply [the tweak](https://github.com/ariya/coverage-jasmine-istanbul-karma/tree/grunt) and now the test becomes a task.