diff --git a/modules/tester.js b/modules/tester.js
index <HASH>..<HASH> 100644
--- a/modules/tester.js
+++ b/modules/tester.js
@@ -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);
     });
 
diff --git a/modules/xunit.js b/modules/xunit.js
index <HASH>..<HASH> 100644
--- a/modules/xunit.js
+++ b/modules/xunit.js
@@ -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";
 }
 
 /**
refs 1d<I>e5 - generateClassname does not remove file extension now if given an already relative path as parameter