public
Last active

  • Download Gist
Gemfile
Ruby
1 2 3 4
source "https://rubygems.org"
 
gem "rspec"
gem "rake"
Rakefile
Ruby
1 2 3 4 5 6 7 8
task :default do
puts "This shows profile info:"
sh "rspec profile_spec.rb --profile --tag ~failing"
 
puts '-' * 80
puts "This doesn't:"
sh "rspec profile_spec.rb --profile"
end
profile_spec.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
describe "profiling" do
it "is fast" do
end
 
it "is slow" do
sleep 3
end
 
it "is pending" do
pending "is pending"
end
 
it "is failing", failing: true do
throw "this is failing"
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.