Format test results as TAP

This commit is contained in:
Thomas Aylott 2013-10-28 16:38:35 -04:00
parent 8205c681eb
commit b867aa0410
3 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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>');

View File

@ -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);