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
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment