Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't start output files with a digit for better compatibility with J…

…Unit report generators
  • Loading branch information...
commit 9cd58e449fb751dd53ac794fc27918369e252b19 1 parent d9f235f
@metafeather authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  run-yuitest-multi.js
  2. +5 −5 yuitest/results.js
View
2  run-yuitest-multi.js
@@ -7,7 +7,7 @@
* Home: https://github.com/metafeather/phantomjs-yuitest
*/
-var fileoverview = "PhantomJS YUITest Driver (v0.3.1)";
+var fileoverview = "PhantomJS YUITest Driver (v0.3.2)";
if (typeof(phantom) !== "undefined" && (phantom.version.major >= 1 && phantom.version.minor >= 4)) {
View
10 yuitest/results.js
@@ -161,21 +161,21 @@ function testResultsTimeout() {
function testResultsToDisk(data) {
// save an image of the page
- page.render(outDir +"images" + fs.separator + (pageindex + 1) +'-'+ fileName + ".png");
+ page.render(outDir +"images" + fs.separator + "TEST-" + (pageindex + 1) +'-'+ fileName + ".png");
// save other formats
if (data.json){
- fs.write(outDir +"json" + fs.separator + (pageindex + 1) +'-'+ fileName + ".json", data.json, 'w');
+ fs.write(outDir +"json" + fs.separator + "TEST-" + (pageindex + 1) +'-'+ fileName + ".json", data.json, 'w');
}
if (data.junit){
- fs.write(outDir +"junit" + fs.separator + (pageindex + 1) +'-'+ fileName + ".xml", data.junit, 'w');
+ fs.write(outDir +"junit" + fs.separator + "TEST-" + (pageindex + 1) +'-'+ fileName + ".xml", data.junit, 'w');
}
if (data.xml){
- fs.write(outDir +"xml" + fs.separator + (pageindex + 1) +'-'+ fileName + ".xml", data.xml, 'w');
+ fs.write(outDir +"xml" + fs.separator + "TEST-" + (pageindex + 1) +'-'+ fileName + ".xml", data.xml, 'w');
}
// parseable but human readable output
if (data.tap){
- fs.write(outDir +"tap" + fs.separator + (pageindex + 1) +'-'+ fileName + ".txt", data.txt, 'w');
+ fs.write(outDir +"tap" + fs.separator + "TEST-" + (pageindex + 1) +'-'+ fileName + ".txt", data.txt, 'w');
console.log('Test results: '+ data.tap);
}
Please sign in to comment.
Something went wrong with that request. Please try again.