Skip to content

Commit

Permalink
Format test results as TAP
Browse files Browse the repository at this point in the history
  • Loading branch information
subtleGradient committed Nov 6, 2013
1 parent 8205c68 commit b867aa0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"grunt-compare-size": "~0.4.0",
"gzip-js": "~0.3.2",
"tmp": "~0.0.18",
"grunt-contrib-compress": "~0.5.1"
"grunt-contrib-compress": "~0.5.1",
"jasmine-tapreporter": "~0.2.2"
},
"engines": {
"node": ">=0.10.0"
Expand Down
1 change: 1 addition & 0 deletions test/browser-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
document.write('<script src="' + __dirname + '/../build/jasmine.js' + cacheBust + '"><\/script>');
document.write('<script src="' + __dirname + '/../build/react.js' + cacheBust + '"><\/script>');
document.write('<script src="' + __dirname + '/../build/react-test.js' + cacheBust + '"><\/script>');
document.write('<script src="' + __dirname + '/../node_modules/jasmine-tapreporter/src/tapreporter.js' + cacheBust + '"><\/script>');
document.write('<script src="' + __dirname + '/../test/the files to test.generated.js' + cacheBust + '"><\/script>');
document.write('<script src="' + __dirname + '/../test/jasmine-execute.js' + cacheBust + '"><\/script>');

Expand Down
2 changes: 2 additions & 0 deletions test/jasmine-execute.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
;(function(env){
env.addReporter(new TAPReporter(console.log.bind(console)));

// Clean up any nodes the previous test might have added.
env.afterEach(function() {
harness.removeNextSiblings(document.body);
Expand Down

0 comments on commit b867aa0

Please sign in to comment.