Skip to content

Commit

Permalink
Add reporting coverage with Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
arximboldi committed May 27, 2015
1 parent c68626b commit 300f583
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ out/
tmp/
lib/
npm-debug.log
coverage/
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ node_js:
before_script:
- npm install
script:
- npm test
- npm run-script test-coverage
after_script: "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
deploy:
provider: npm
email: raskolnikov@gnu.org
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Cooperative multiple inheritance for CoffeeScript, á-la Python.
(https://travis-ci.org/arximboldi/heterarchy)
[![npm version](https://badge.fury.io/js/heterarchy.svg)]
(http://badge.fury.io/js/heterarchy)
[![coverage Status](https://coveralls.io/repos/arximboldi/heterarchy/badge.svg)]
(https://coveralls.io/r/arximboldi/heterarchy)

Adds multiple inheritance support to CoffeeScript (and JavaScript).
It uses the C3 linearization algorithm as described in the [famous
Expand Down
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ NODEJS = node
COFFEE = $(NODE_BIN)/coffee
DOCCO = $(NODE_BIN)/docco
JASMINE = $(NODE_BIN)/jasmine-node
ISTANBUL = $(NODE_BIN)/istanbul

SCRIPTS = \
lib/heterarchy.js \
Expand Down Expand Up @@ -69,5 +70,8 @@ clean:
test:
$(JASMINE) --verbose --coffee spec

test-coverage:
$(ISTANBUL) cover --root ./lib $(JASMINE) spec -- --verbose --coffee

upload-doc: doc
ncftpput -R -m -u u48595320 sinusoid.es /heterarchy doc/*
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@
},
"devDependencies": {
"jasmine-node": ">=1.0.26",
"docco": ">=0.6"
"docco": ">=0.6",
"istanbul": "0.3.5",
"coveralls": "2.10.0"
},
"scripts": {
"test": "make test",
"test-coverage": "make test-coverage",
"prepublish": "make",
"pretest": "make"
},
Expand Down
2 changes: 1 addition & 1 deletion spec/heterarchy.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
describe 'heterarchy', ->

{multi, mro, hierarchy, inherited, isinstance, issubclass} =
require '../heterarchy'
require '../lib/heterarchy'

# Hierarchies to test
# -------------------
Expand Down

0 comments on commit 300f583

Please sign in to comment.