-
Notifications
You must be signed in to change notification settings - Fork 126
Description
We are using the XML formatter in our CI process. In Rspec 3.6.0 (https://github.com/rspec/rspec-core/blob/master/Changelog.md#360beta2--2016-12-12), they added support to get an error count of errors that occur outside of an example. Errors in an example typically return as a test failure. We would like to get this error count surfaced via the formatter for use in the CI.
The API that is supported in you XML dump has an error element that is always set to zero. Would it be acceptable if the supporting code was altered to get the error count reported from Rspec 3.6.0 and return it in that field? I would be happy to put a pull request together if this sounds like a reasonable proposal. I believe the solution would be to return 0 for version of Rspec 3 < 3.6.0 and the count of errors returned from Rspec for later versions.