Format test results as TAP
Thomas Aylott committed
Oct 28, 2013 at 16:38 UTC
b867aa0410f1de13ade01ee48a29b273e340fac3
3 files changed
+5
-1
package.json
+2
-1
@@ -56,7 +56,8 @@
56
"grunt-compare-size": "~0.4.0",
57
"gzip-js": "~0.3.2",
58
"tmp": "~0.0.18",
59
- "grunt-contrib-compress": "~0.5.1"
59
+ "grunt-contrib-compress": "~0.5.1",
60
+ "jasmine-tapreporter": "~0.2.2"
61
},
62
"engines": {
63
"node": ">=0.10.0"
test/browser-runner.js
+1
@@ -23,6 +23,7 @@
23
document.write('<script src="' + __dirname + '/../build/jasmine.js' + cacheBust + '"><\/script>');
24
document.write('<script src="' + __dirname + '/../build/react.js' + cacheBust + '"><\/script>');
25
document.write('<script src="' + __dirname + '/../build/react-test.js' + cacheBust + '"><\/script>');
26
+ document.write('<script src="' + __dirname + '/../node_modules/jasmine-tapreporter/src/tapreporter.js' + cacheBust + '"><\/script>');
27
document.write('<script src="' + __dirname + '/../test/the files to test.generated.js' + cacheBust + '"><\/script>');
28
document.write('<script src="' + __dirname + '/../test/jasmine-execute.js' + cacheBust + '"><\/script>');
29
test/jasmine-execute.js
+2
@@ -1,4 +1,6 @@
1
;(function(env){
2
+ env.addReporter(new TAPReporter(console.log.bind(console)));
3
+
4
// Clean up any nodes the previous test might have added.
5
env.afterEach(function() {
6
harness.removeNextSiblings(document.body);