aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregg Caines <[email protected]>2013-11-23 07:41:18 -0800
committerGregg Caines <[email protected]>2013-11-23 07:41:18 -0800
commit7c7ce93b06d8e2b08ea9107c44dc9d5de4d746ba (patch)
tree5ee1c95856a9aae2b762a2ee35bee3d58f25117f
parentb59caf0606d2ab612cedc62e39a27142b8d7e499 (diff)
downloadnode-coveralls-7c7ce93b06d8e2b08ea9107c44dc9d5de4d746ba.tar.xz
node-coveralls-7c7ce93b06d8e2b08ea9107c44dc9d5de4d746ba.zip
fixed merge conflicts in makefile. continuing work to switch coverage tool to istanbul.
-rw-r--r--.gitignore2
-rw-r--r--Makefile16
-rw-r--r--package.json9
3 files changed, 11 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
index 2c09685..e53562f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
node_modules/
-coverage.html
+coverage/
lib-cov/
diff --git a/Makefile b/Makefile
index 6d761a3..d4a1e17 100644
--- a/Makefile
+++ b/Makefile
@@ -2,21 +2,19 @@ REPORTER = spec
test:
@$(MAKE) lint
@echo TRAVIS_JOB_ID $(TRAVIS_JOB_ID)
- @$(MAKE) core_test
-
-core_test:
- @NODE_ENV=test ./node_modules/.bin/mocha -b --require blanket --reporter $(REPORTER)
+ @NODE_ENV=test ./node_modules/.bin/mocha -b --reporter $(REPORTER)
lint:
./node_modules/.bin/jshint ./lib ./test ./index.js
test-cov:
- $(MAKE) test REPORTER=spec
- $(MAKE) core_test REPORTER=html-cov > coverage.html
+ $(MAKE) lint
+ @NODE_ENV=test ./node_modules/.bin/istanbul cover \
+ ./node_modules/mocha/bin/_mocha -- -R spec
test-coveralls:
- $(MAKE) test REPORTER=spec
- $(MAKE) core_test REPORTER=mocha-lcov-reporter | ./bin/coveralls.js --verbose
- rm -rf lib-cov
+ @NODE_ENV=test ./node_modules/.bin/istanbul cover \
+ ./node_modules/mocha/bin/_mocha -- \
+ REPORTER=mocha-lcov-reporter | ./bin/coveralls.js --verbose
.PHONY: test
diff --git a/package.json b/package.json
index 198a52c..035186b 100644
--- a/package.json
+++ b/package.json
@@ -10,11 +10,7 @@
"url": "https://github.com/cainus/node-coveralls/issues"
},
"scripts": {
- "test": "make test",
- "blanket": {
- "pattern": "lib",
- "data-cover-never": "node_modules"
- }
+ "test": "make test"
},
"bin": {
"coveralls": "./bin/coveralls.js"
@@ -27,6 +23,7 @@
"Kir Belevich (https://github.com/svg)",
"elliotcable <[email protected]> (http://elliottcable.name/)",
"Slotos <[email protected]> (http://slotos.net)",
+ "mattjmorrison <[email protected]> (http://mattjmorrison.com)",
"Arpad Borsos <[email protected]> (http://swatinem.de/)"
],
"dependencies": {
@@ -36,11 +33,11 @@
"log-driver": "1.2.1"
},
"devDependencies": {
- "blanket": "~1.1.5",
"sinon-restore": "1.0.0",
"mocha-lcov-reporter": "0.0.1",
"mocha": "1.8.1",
"should": "1.1.0",
+ "istanbul": "0.1.45",
"jshint": "2.1.3"
},
"engines": {