Shubham Khandare
Shubham Khandare

Reputation: 135

How to write into Rspec output log file from rspec test case?

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

Answers (1)

Goko Gorgiovski
Goko Gorgiovski

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

Related Questions