Commit 33723622 33723622522a91e5ce302942bc643d7b019edb5a by Nicolas Perriault

Merge pull request #296 from majorleaguesoccer/Issue-295

ref #295 - Adding fallback to casperScript name for xunit module.
2 parents d4667cef 85f4af7e
...@@ -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
......