Permalink
Browse files

Added blanket for coverage testing and updated all tests

  • Loading branch information...
1 parent b3896a9 commit cc2511d2997fcd1ece9118c4cd95441f6cbe9a50 @tedeh committed Nov 30, 2012
View
1 .gitignore
@@ -2,3 +2,4 @@ node_modules
.*
!.gitignore
sandbox
+coverage.html
View
5 Makefile
@@ -2,7 +2,10 @@ SOURCE ?= lib/client/jquery.js
SOURCE_OUT ?= build/jayson.jquery.min.js
test:
- @./node_modules/.bin/mocha
+ ./node_modules/.bin/mocha
+
+test-cov:
+ ./node_modules/.bin/mocha -R html-cov > coverage.html
compile:
curl -s --data-urlencode js_code@$(SOURCE) --data-urlencode compilation_level=SIMPLE_OPTIMIZATIONS --data-urlencode output_format=text --data-urlencode output_info=compiled_code http://closure-compiler.appspot.com/compile > $(SOURCE_OUT)
View
3 package.json
@@ -25,6 +25,7 @@
"should": "*",
"mocha": "*",
"connect": "*",
- "uglify-js": "*"
+ "uglify-js": "*",
+ "blanket": "*"
}
}
View
1 test/bin.server-client.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var should = require('should');
var jayson = require(__dirname + '/..');
var support = require('./support/client-server');
View
1 test/fork.client-server.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var should = require('should');
var jayson = require(__dirname + '/..');
var support = require('./support/client-server');
View
1 test/http.client-server.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var should = require('should');
var jayson = require(__dirname + '/..');
var support = require('./support/client-server');
View
1 test/middleware.server-client.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var should = require('should');
var support = require('./support/client-server');
var jayson = require(__dirname + '/..');
View
1 test/relay.client-server.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var should = require('should');
var jayson = require(__dirname + '/..');
var support = require('./support/client-server');
View
1 test/server.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var should = require('should');
var jayson = require(__dirname + '/../');
var support = require(__dirname + '/support/client-server');
View
1 test/utils.test.js
@@ -1,3 +1,4 @@
+require('blanket')(/master\/lib/);
var assert = require('assert');
var should = require('should');

0 comments on commit cc2511d

Please sign in to comment.