Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
adding code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryski committed Oct 17, 2016
1 parent 441960a commit 31011ef
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 7 deletions.
17 changes: 17 additions & 0 deletions .istanbul.yml
@@ -0,0 +1,17 @@
verbose: false
instrumentation:
root: ./src/
excludes:
- lib/
include-all-sources: true
reporting:
print: summary
reports:
- html
- text
- lcov
watermarks:
statements: [50, 80]
lines: [50, 80]
functions: [50, 80]
branches: [50, 80]
6 changes: 5 additions & 1 deletion .npmignore
@@ -1,4 +1,8 @@
.editorconfig
.travis.yml
.istanbul.yml
.babelrc
.idea/
src/
test/
!lib/
!lib/
16 changes: 13 additions & 3 deletions .travis.yml
@@ -1,12 +1,22 @@
sudo: required
language: node_js
node_js:
- 'node'
- '6'
- '4'
- 'iojs' #end of life Jan. 2017
- '0.12' #end of life Jan. 2017
- '0.10' #end of life Jan. 2017
addons:
code_climate:
repo_token: '7923d082ec24c66c6e2b85339b00191a7701678418ec1b4cbbfb42b6110eab7a'
before_install:
- echo "deb http://download.rethinkdb.com/apt `lsb_release -cs` main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
- wget -qO- https://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install rethinkdb
before_script:
- rethinkdb --daemon
node_js:
- 'node'
- 'iojs'
- npm install -g codeclimate-test-reporter
after_script:
- codeclimate-test-reporter < coverage/lcov.info
6 changes: 5 additions & 1 deletion README.md
@@ -1,7 +1,11 @@
feathers-rethinkdb
==================

[![Build Status](https://travis-ci.org/feathersjs/feathers-rethinkdb.svg?branch=master)](https://travis-ci.org/feathersjs/feathers-rethinkdb)
[![Build Status](https://travis-ci.org/feathersjs/feathers-rethinkdb.png?branch=master)](https://travis-ci.org/feathersjs/feathers-rethinkdb)
[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-rethinkdb/badges/gpa.svg)](https://codeclimate.com/github/feathersjs/feathers-rethinkdb)
[![Test Coverage](https://codeclimate.com/github/feathersjs/feathers-rethinkdb/badges/coverage.svg)](https://codeclimate.com/github/feathersjs/feathers-rethinkdb/coverage)
[![Dependency Status](https://img.shields.io/david/feathersjs/feathers-rethinkdb.svg?style=flat-square)](https://david-dm.org/feathersjs/feathers-rethinkdb)
[![Download Status](https://img.shields.io/npm/dm/feathers-rethinkdb.svg?style=flat-square)](https://www.npmjs.com/package/feathers-rethinkdb)

> Create a [RethinkDB](https://rethinkdb.com/) Service for [FeatherJS](https://github.com/feathersjs).
Expand Down
3 changes: 3 additions & 0 deletions mocha.opts
@@ -0,0 +1,3 @@
--recursive test/
--compilers js:babel-core/register
--timeout 5000
6 changes: 4 additions & 2 deletions package.json
Expand Up @@ -36,8 +36,9 @@
"compile": "rm -rf lib/ && babel -d lib/ src/",
"watch": "babel --watch -d lib/ src/",
"jshint": "jshint src/. test/. --config",
"mocha": "mocha test/ --compilers js:babel-core/register --timeout 5000",
"test": "rm -rf db-data && npm run compile && npm run jshint && npm run mocha"
"mocha": "mocha --opts mocha.opts",
"coverage": "istanbul cover _mocha -- --opts mocha.opts",
"test": "rm -rf db-data && npm run compile && npm run jshint && npm run coverage"
},
"directories": {
"lib": "lib"
Expand All @@ -60,6 +61,7 @@
"feathers-rest": "^1.2.4",
"feathers-service-tests": "^0.6.2",
"feathers-socketio": "^1.3.3",
"istanbul": "^1.1.0-alpha.1",
"jshint": "^2.9.1",
"mocha": "^3.0.0",
"rethinkdbdash": "^2.2.18"
Expand Down

0 comments on commit 31011ef

Please sign in to comment.