Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created August 17, 2016 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myronmarston/37b74e2551007dee75a21a79cc3d5a9c to your computer and use it in GitHub Desktop.
Save myronmarston/37b74e2551007dee75a21a79cc3d5a9c to your computer and use it in GitHub Desktop.
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:specs_prep) do |t|
t.rspec_opts = "--out tmp/specs_task.out"
end
task :specs => :specs_prep do
results = File.read("tmp/specs_task.out")
# do something with results
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment