Sha256: 5acee42440ce1df4308ebd73e147647e6cf5cb458e38f7fd7bb9da7794b8746f

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

# RSpec JUnit Formatter

[RSpec][rspec] results that [Hudson][hudson] can read. Probably a few other CI servers, too.

Inspired by the work of [Diego Souza][dsouza] on [RSpec Formatters][dsouza/rspec_formatters] after frustration with [CI Reporter][ci_reporter].

## Usage

Install the gem:

    gem install rspec_junit_formatter

Use it:

    rspec --format RspecJunitFormatter --out rspec.xml

You'll get an XML file with your results in it.

## More Permanent Usage

In your .rspec, usually alongside another formatter, add:

    --format JUnitFormatter
    --out rspec.xml

I use it with the excellent [Fuubar formatter][fuubar].

## Roadmap

 * 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.

## License

The MIT License, see [LICENSE][license].

  [rspec]: http://rspec.info/
  [hudson]: http://hudson-ci.org/
  [dsouza]: https://github.com/dsouza
  [dsouza/rspec_formatters]: https://github.com/dsouza/rspec_formatters
  [ci_reporter]: http://caldersphere.rubyforge.org/ci_reporter/
  [fuubar]: http://jeffkreeftmeijer.com/2010/fuubar-the-instafailing-rspec-progress-bar-formatter/
  [license]: https://github.com/sj26/rspec-junit-formatter/blob/master/LICENSE

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec_junit_formatter-0.1.0 README.md