mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Format test results as TAP
This commit is contained in:
+2
-1
@@ -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"
|
||||
|
||||
@@ -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>');
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user