refs 1d116e5c - generateClassname does not remove file extension now if given an …
…already relative path as parameter
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -70,11 +70,11 @@ var Tester = function(casper, options) { | ... | @@ -70,11 +70,11 @@ var Tester = function(casper, options) { |
70 | }); | 70 | }); |
71 | 71 | ||
72 | this.on('success', function(success) { | 72 | this.on('success', function(success) { |
73 | this.exporter.addSuccess(success.file, success.message); | 73 | this.exporter.addSuccess(fs.absolute(success.file), success.message); |
74 | }); | 74 | }); |
75 | 75 | ||
76 | this.on('fail', function(failure) { | 76 | this.on('fail', function(failure) { |
77 | this.exporter.addFailure(failure.file, failure.message, failure.details || "test failed", failure.type || "unknown"); | 77 | this.exporter.addFailure(fs.absolute(failure.file), failure.message, failure.details || "test failed", failure.type || "unknown"); |
78 | this.testResults.failures.push(failure); | 78 | this.testResults.failures.push(failure); |
79 | }); | 79 | }); |
80 | 80 | ... | ... |
... | @@ -96,7 +96,7 @@ function generateClassName(classname) { | ... | @@ -96,7 +96,7 @@ function generateClassName(classname) { |
96 | script = script.substring(fs.workingDirectory.length + 1); | 96 | script = script.substring(fs.workingDirectory.length + 1); |
97 | return script.substring(0, script.lastIndexOf('.')); | 97 | return script.substring(0, script.lastIndexOf('.')); |
98 | } | 98 | } |
99 | return classname; | 99 | return classname || "unknown"; |
100 | } | 100 | } |
101 | 101 | ||
102 | /** | 102 | /** | ... | ... |
-
Please register or sign in to post a comment