I'm running my RSpec tests via a tool (TestKitchen) that only supports RSpec configuration via a spec_helper.rb file where one can configure RSpec using RSpec.configure blocks. It supports neither custom CLI flags/arguments to rspec nor .rspec files. I would still like to get jUnit output with my TestKitchen tests. Is there any way to use Rspec.configure to configure RspecJunitFormatter? I'm thinking something along the lines of the following:
RSpec.configure do |c|
c.formatter = 'RspecJunitFormatter'
c.output = '/path/to/output.xml'
end
I'm running my RSpec tests via a tool (TestKitchen) that only supports RSpec configuration via a
spec_helper.rb
file where one can configure RSpec usingRSpec.configure
blocks. It supports neither custom CLI flags/arguments to rspec nor.rspec
files. I would still like to get jUnit output with my TestKitchen tests. Is there any way to useRspec.configure
to configure RspecJunitFormatter? I'm thinking something along the lines of the following: