Skip to content

Returning error information outside an example #85

@pingfr

Description

@pingfr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions