sj26 / rspec_junit_formatter

RSpec results that your CI can read
http://rubygems.org/gems/rspec_junit_formatter
MIT License
302 stars 122 forks source link

Attribute 'file' is not allowed to appear in element 'testcase' #65

Closed leonard84 closed 5 years ago

leonard84 commented 6 years ago

With newer xUnit Plugin versions we get this error:

WARNING: At line 3434 of file:/home/jenkins/work/frontend/rspec.xml:cvc-complex-type.3.2.2: Attribute 'file' is not allowed to appear in element 'testcase'.
12:15:46 ERROR: The plugin hasn't been performed correctly: The result file '/home/jenkins/work/frontend/rspec.xml' for the metric 'JUnit' is not valid. The result file has been skipped.

See also https://github.com/junit-team/junit5/blob/master/platform-tests/src/test/resources/jenkins-junit.xsd

sj26 commented 5 years ago

Please see #70. file is nonstandard, but is now used by several consumes of rspec junit formatter. junit is a very loose specification, xunit should probably be a little more lenient and ignore unknown attributes.