RSpec
RSpec is a testing framework for Ruby.
Enabling XML Output
RSpec can be configured to produce JUnit XML output by installing the rspec_junit_formatter
module.
Add the formatter to your command line like this:
Test Suite Naming
The output file can be set with the --out
option like this:
By default, RSpec will include the file
attribute in the output XML like this:
Further Information
See an example of using RSpec in a GitHub action here.
Last updated