Commit be96826c be96826cd16a8c2a3887e5f54c831ea546ca5555 by Nicolas Perriault

Merge pull request #605 from fdubost/master

XML serialization for xUnit output
2 parents 8547c123 2071562a
......@@ -83,7 +83,8 @@ function XUnitExporter() {
this.results = undefined;
this._xml = utils.node('testsuites');
this._xml.toString = function toString() {
return '<?xml version="1.0" encoding="UTF-8"?>' + this.outerHTML; // ouch
var serializer = new XMLSerializer();
return '<?xml version="1.0" encoding="UTF-8"?>' + serializer.serializeToString(this);
};
}
exports.XUnitExporter = XUnitExporter;
......