Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add coverage #311

Merged
merged 1 commit into from
Jul 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
test.js
coverage
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ benchmarks
examples
test
Makefile
coverage
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- "0.11"

script: "make test-travis"
after_script: "npm install [email protected] && cat ./coverage/lcov.info | coveralls"
29 changes: 25 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,35 @@ SRC = lib/*.js

include node_modules/make-lint/index.mk

TESTS = test/application \
test/context/* \
test/request/* \
test/response/*

test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--require should \
--harmony-generators \
test/application \
test/context/* \
test/request/* \
test/response/* \
$(TESTS) \
--bail

test-cov:
@NODE_ENV=test node --harmony-generators \
node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
-- -u exports \
--require should \
$(TESTS) \
--bail

test-travis:
@NODE_ENV=test node --harmony-generators \
node_modules/.bin/istanbul cover \
./node_modules/.bin/_mocha \
--report lcovonly \
-- -u exports \
--require should \
$(TESTS) \
--bail

bench:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"should": "^3.1.0",
"mocha": "^1.17.0",
"supertest": "~0.13.0",
"istanbul-harmony": "~0.2.9",
"make-lint": "^1.0.1"
},
"engines": {
Expand Down