Commit 5d79ee63 5d79ee63fc6e393b98f3c80c3137efc764823d1a by Nicolas Perriault

refs 1d116e5c - generateClassname does not remove file extension now if given an …

…already relative path as parameter
1 parent 6b76a896
......@@ -70,11 +70,11 @@ var Tester = function(casper, options) {
});
this.on('success', function(success) {
this.exporter.addSuccess(success.file, success.message);
this.exporter.addSuccess(fs.absolute(success.file), success.message);
});
this.on('fail', function(failure) {
this.exporter.addFailure(failure.file, failure.message, failure.details || "test failed", failure.type || "unknown");
this.exporter.addFailure(fs.absolute(failure.file), failure.message, failure.details || "test failed", failure.type || "unknown");
this.testResults.failures.push(failure);
});
......
......@@ -96,7 +96,7 @@ function generateClassName(classname) {
script = script.substring(fs.workingDirectory.length + 1);
return script.substring(0, script.lastIndexOf('.'));
}
return classname;
return classname || "unknown";
}
/**
......