Reputation: 135
I have Rspec test cases but I want write some data from variables into Rspec output file for further processing, so how to write into output file generated by --out rspec_results.html
Upvotes: 1
Views: 2856
Reputation: 1462
In your spec_helper.rb
file write down this code
RSpec.configure do |config|
config.example_status_persistence_file_path = 'spec/examples.txt'
end
Upvotes: 3