Skip to content

Commit b867aa0

Browse files
Format test results as TAP
1 parent 8205c68 commit b867aa0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"grunt-compare-size": "~0.4.0",
5757
"gzip-js": "~0.3.2",
5858
"tmp": "~0.0.18",
59-
"grunt-contrib-compress": "~0.5.1"
59+
"grunt-contrib-compress": "~0.5.1",
60+
"jasmine-tapreporter": "~0.2.2"
6061
},
6162
"engines": {
6263
"node": ">=0.10.0"

test/browser-runner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
document.write('<script src="' + __dirname + '/../build/jasmine.js' + cacheBust + '"><\/script>');
2424
document.write('<script src="' + __dirname + '/../build/react.js' + cacheBust + '"><\/script>');
2525
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>');
2627
document.write('<script src="' + __dirname + '/../test/the files to test.generated.js' + cacheBust + '"><\/script>');
2728
document.write('<script src="' + __dirname + '/../test/jasmine-execute.js' + cacheBust + '"><\/script>');
2829

test/jasmine-execute.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
;(function(env){
2+
env.addReporter(new TAPReporter(console.log.bind(console)));
3+
24
// Clean up any nodes the previous test might have added.
35
env.afterEach(function() {
46
harness.removeNextSiblings(document.body);

0 commit comments

Comments
 (0)