Commit e693b29e e693b29e505233c8fe5efd07c699c1109916464a by fwebdev

Update xunit.js

Changed testsuite Attribute "duration" to "time".
Jenkins does not parse the generated xunit Files otherways.

See also:
https://groups.google.com/d/msg/casperjs/n1tbi0K9Tnk/MA4SO_4SImUJ

The XSD Schema:
http://windyroad.com.au/dl/Open%20Source/JUnit.xsd
1 parent f5adc45f
...@@ -153,7 +153,7 @@ XUnitExporter.prototype.getXML = function getXML() { ...@@ -153,7 +153,7 @@ XUnitExporter.prototype.getXML = function getXML() {
153 suiteNode.appendChild(warningNode); 153 suiteNode.appendChild(warningNode);
154 this._xml.appendChild(suiteNode); 154 this._xml.appendChild(suiteNode);
155 }.bind(this)); 155 }.bind(this));
156 this._xml.setAttribute('duration', utils.ms2seconds(this.results.calculateDuration())); 156 this._xml.setAttribute('time', utils.ms2seconds(this.results.calculateDuration()));
157 return this._xml; 157 return this._xml;
158 }; 158 };
159 159
......