Skip to content

Commit

Permalink
Merge pull request #77 from mozilla-services/reintroduce-coverage
Browse files Browse the repository at this point in the history
Reintegrated coverage using a two-passes strategy.
  • Loading branch information
n1k0 committed Jul 16, 2015
2 parents f7be1f6 + b1fee07 commit bd84157
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Kinto.js

[![Build Status](https://travis-ci.org/mozilla-services/kinto.js.svg?branch=master)](https://travis-ci.org/mozilla-services/kinto.js) [![](https://readthedocs.org/projects/kintojs/badge/?version=latest)](http://kintojs.readthedocs.org/)
[![Build Status](https://travis-ci.org/mozilla-services/kinto.js.svg?branch=master)](https://travis-ci.org/mozilla-services/kinto.js) [![](https://coveralls.io/repos/mozilla-services/kinto.js/badge.svg?branch=master)](https://coveralls.io/r/mozilla-services/kinto.js?branch=master) [![](https://readthedocs.org/projects/kintojs/badge/?version=latest)](http://kintojs.readthedocs.org/)

A JavaScript client for [Kinto](https://kinto.readthedocs.org/).
10 changes: 6 additions & 4 deletions docs/hacking.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ Code is [hosted on Github](https://github.com/mozilla-services/kinto.js).

$ npm test

Code coverage reporting:
This will also run code coverage and send the report to [Coveralls](http://coveralls.io/). Alternatives:

$ npm run test-cover # runs tests, code coverage
$ npm run test-cover-html # runs tests, code coverage and generates a html report
$ open coverage/index.html # opens that fancy html report
$ npm run test-nocover # runs tests skipping code coverage
$ npm run test-cover # runs tests, code coverage; doesn't send results
$ npm run test-cover-html # runs tests, code coverage and opens a fancy html report

Note that code coverage reports are also [browseable on Coveralls](https://coveralls.io/r/mozilla-services/kinto.js).

### TDD mode

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kinto.js [![](https://travis-ci.org/mozilla-services/kinto.js.svg?branch=master)](https://travis-ci.org/mozilla-services/kinto.js) [![](https://readthedocs.org/projects/kintojs/badge/?version=latest)](http://kintojs.readthedocs.org/)
# Kinto.js [![](https://travis-ci.org/mozilla-services/kinto.js.svg?branch=master)](https://travis-ci.org/mozilla-services/kinto.js) [![](https://coveralls.io/repos/mozilla-services/kinto.js/badge.svg?branch=master)](https://coveralls.io/r/mozilla-services/kinto.js?branch=master)[![](https://readthedocs.org/projects/kintojs/badge/?version=latest)](http://kintojs.readthedocs.org/)

> An offline-first JavaScript client for [Kinto](http://kinto.readthedocs.org/).
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"dist": "npm run dist-dev && npm run dist-prod",
"dist-dev": "browserify -s Kinto -x fake-indexeddb -d -e src/index.js -o dist/kinto.dev.js && cp dist/kinto.dev.js demo/",
"dist-prod": "browserify -s Kinto -x fake-indexeddb -g uglifyify -e src/index.js -o dist/kinto.min.js && cp dist/kinto.min.js demo/",
"report-coverage": "npm run test-cover && ./node_modules/coveralls/bin/coveralls.js < ./coverage/lcov.info",
"tdd": "mocha -w --compilers js:babel/register test/*_test.js",
"test": "npm run test-nocover",
"test": "npm run report-coverage && npm run test-nocover",
"test-cover": "babel-node node_modules/.bin/isparta cover --report text $npm_package_config_ISPARTA_OPTS node_modules/.bin/_mocha",
"test-cover-html": "babel-node node_modules/.bin/isparta cover --report html $npm_package_config_ISPARTA_OPTS node_modules/.bin/_mocha && open coverage/index.html",
"test-nocover": "mocha --compilers js:babel/register test/*_test.js",
Expand Down

0 comments on commit bd84157

Please sign in to comment.