RSpec JUnit Formatter
Install the gem:
gem install rspec_junit_formatter
rspec --format RspecJunitFormatter --out rspec.xml
You'll get an XML file with your results in it.
More Permanent Usage
Add it to your Gemfile if you're using Bundler.
In your .rspec, usually alongside another formatter, add:
--format JUnitFormatter --out rspec.xml
I use it with the excellent Fuubar formatter.
- It would be nice to split things up into individual test suites, although would this correspond to example groups? The subject? The spec file? Not sure yet.
- This would sit nicely in rspec-core, and has been designed to do so.
The MIT License, see LICENSE.