Permalink
Browse files

*: switch to istanbul for coverage analysis

  • Loading branch information...
1 parent 4671ec3 commit f2394e75b97ee0b8797c69940f37b1554561209c @rauchg rauchg committed Dec 25, 2013
Showing with 11 additions and 17 deletions.
  1. +1 −0 .gitignore
  2. +8 −14 Makefile
  3. +1 −3 index.js
  4. +1 −0 package.json
View
@@ -3,3 +3,4 @@ build
build.js
components
.DS_Store
+coverage
View
@@ -1,23 +1,17 @@
REPORTER = dot
-build: components lib
- @./node_modules/.bin/component build --standalone io
- @mv build/build.js build.js
- @rm -rf build
- @./node_modules/.bin/uglifyjs < build.js > socket.io-client.js
- @rm -f build.js
- @echo "… done"
-
-components: component.json
- @./node_modules/.bin/component install --dev
-
-clean:
- rm -fr components build build.js
+build:
+ @./node_modules/.bin/browserify --standalone io -o socket.io.js .
test:
@./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--bail
-.PHONY: test clean
+test-cov:
+ @./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
+ --reporter $(REPORTER) \
+ $(TESTS)
+
+.PHONY: test
View
@@ -1,4 +1,2 @@
-module.exports = process.env.SIO_COV
-? require('./lib-cov/')
-: require('./lib/');
+module.exports = require('./lib/');
View
@@ -13,6 +13,7 @@
},
"devDependencies": {
"mocha": "1.16.2",
+ "istanbul": "0.2.1",
"expect.js": "0.2.0",
"uglify-js": "2.4.8",
"browserify": "2.35.1"

0 comments on commit f2394e7

Please sign in to comment.