Skip to content

Commit 14eec14

Browse files
committed
Merge pull request #19 from testdouble/testem
Configure Testem
2 parents ff28928 + 2d9c863 commit 14eec14

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@
88
"email": "[email protected]",
99
"url": "http://testdouble.com"
1010
},
11+
"config": {
12+
"mocha_reporter": "spec"
13+
},
1114
"scripts": {
12-
"test": "mocha --ui mocha-gwt --recursive --require coffee-script --compilers coffee:coffee-script/register 'test/helper.coffee' 'test/'",
13-
"test-debug": "mocha --debug-brk --ui mocha-gwt --recursive --require coffee-script --compilers coffee:coffee-script/register 'test/helper.coffee' 'test/'",
15+
"start": "testem",
16+
"test": "mocha -u mocha-gwt -R $npm_package_config_mocha_reporter --compilers coffee:coffee-script --recursive test/helper.coffee test/",
17+
"test:debug": "npm test -- --debug-brk",
1418
"preversion": "git pull --rebase && npm test",
1519
"postversion": "git push && git push --tags && npm publish"
1620
},
@@ -20,10 +24,9 @@
2024
},
2125
"devDependencies": {
2226
"chai": "^3.2.0",
23-
"grunt": "~0.4.2",
2427
"mocha": "^2.3.1",
2528
"mocha-gwt": "^0.2.0",
26-
"testem": "~0.6.15"
29+
"testem": "^0.9.4"
2730
},
2831
"keywords": [
2932
"tdd",

testem.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var pkg = require('./package.json');
2+
3+
module.exports = {
4+
launch_in_dev: [ 'node' ],
5+
6+
launchers: {
7+
node: {
8+
command: 'npm test --testdouble:mocha_reporter=tap',
9+
protocol: 'tap'
10+
}
11+
}
12+
};

0 commit comments

Comments
 (0)