Merge pull request #296 from majorleaguesoccer/Issue-295
ref #295 - Adding fallback to casperScript name for xunit module.
Showing
1 changed file
with
6 additions
and
0 deletions
... | @@ -55,6 +55,12 @@ function generateClassName(classname) { | ... | @@ -55,6 +55,12 @@ function generateClassName(classname) { |
55 | if (~script.indexOf('.')) { | 55 | if (~script.indexOf('.')) { |
56 | script = script.substring(0, script.lastIndexOf('.')); | 56 | script = script.substring(0, script.lastIndexOf('.')); |
57 | } | 57 | } |
58 | |||
59 | // If we have trimmed our string down to nothing, default to script name | ||
60 | if (!script && phantom.casperScript) { | ||
61 | script = phantom.casperScript; | ||
62 | } | ||
63 | |||
58 | return script || "unknown"; | 64 | return script || "unknown"; |
59 | } | 65 | } |
60 | 66 | ... | ... |
-
Please register or sign in to post a comment