Skip to content

sgerrand/rspec_log

 
 

Repository files navigation

rspec_log

RSPEC logging which is persistent accross runs, can be reset on command!

gem 'rspec_log'

Setup the test this way in your spec_helper.rb file:

require 'rspec_log'

config.before :suite do
  logs = RSpecLog.new(newfile: true) # newfile clears the file if it exists
end

config.after :all do
  logs.write_file
end
RSpecLog.add_to_log('Name log', 'context info')

About

Persistent Rspec logger

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%