# rspec_junit_formatter

> Writes RSpec results as JUnit XML that CI services can read

Source: https://talira.ai/catalog/rspec-junit-formatter-t7hyyxnq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / testing / reports](https://talira.ai/categories/developer-tools/testing/reports), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Samuel Cochran](https://talira.ai/orgs/samuel-cochran.md)

rspec_junit_formatter is an [RSpec](https://talira.ai/catalog/rspec-87n8pes2.md) 3 formatter that writes test results as a JUnit XML file, the format CI services such as Jenkins, Buildkite, CircleCI and GitLab read to show test reports. It runs alongside other formatters, and with parallel_tests it adds the worker number to each output file and suite name, reading the worker index from GitLab, CircleCI, Semaphore, Buildkite or Bitbucket Pipelines when TEST_ENV_NUMBER is unset.

## Links

- GitHub: https://github.com/sj26/rspec_junit_formatter

## Problems it solves

- show RSpec test results in my CI service's test report
- get JUnit XML out of an RSpec run
- combine RSpec results from parallel CI jobs

## Features

- JUnit XML output from RSpec 3
- Works alongside other RSpec formatters
- Readable by Jenkins, Buildkite, CircleCI, GitLab and others
- parallel_tests support with a file and suite name per worker
- Reads the CI node index from GitLab, CircleCI, Semaphore, Buildkite and Bitbucket

## Limitations

- Needs Ruby 3.3 or later and RSpec 3.13 or later (below 4)[^1]

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.91, adoption 0.50, momentum 0.13, community 0.59, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 46 commits in the last 90 days
- latest release v0.8.0 39 days ago
- 318 GitHub stars
- 29 contributors
- backed by Samuel Cochran

## Related

- Works with [RSpec](https://talira.ai/catalog/rspec-87n8pes2.md)

## Alternatives

- [minitest-reporters](https://talira.ai/catalog/minitest-reporters-nmrpjxfh.md): Customizable output formats for Ruby's Minitest
- [jest-junit](https://talira.ai/catalog/jest-junit-k7y42d3p.md): Jest reporter that writes JUnit XML files
- [Allure Report](https://talira.ai/catalog/allure-report-wc3w4j10.md): Open source HTML test automation report tool
- [xcresultparser](https://talira.ai/catalog/xcresultparser-k1dtbnqf.md): Parse the binary .xcresult bundles from Xcode builds and test runs

## Sources

[^1]: https://github.com/sj26/rspec_junit_formatter/blob/main/README.md (checked 27 Nov 2026)
[^2]: https://github.com/sj26/rspec_junit_formatter/blob/main/LICENSE (checked 27 Nov 2026)
