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) {
if (~script.indexOf('.')) {
script = script.substring(0, script.lastIndexOf('.'));
}
// If we have trimmed our string down to nothing, default to script name
if (!script && phantom.casperScript) {
script = phantom.casperScript;
}
return script || "unknown";
}
......