Skip to content

Instantly share code, notes, and snippets.

@bhenderson
Last active January 3, 2016 09:09
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 bhenderson/8440880 to your computer and use it in GitHub Desktop.
Save bhenderson/8440880 to your computer and use it in GitHub Desktop.
$ ruby /tmp/ruby.rb -v
Run options: -v --seed 24668
# Running:
sleeping
TestReporting#test_slow = 1.00 s = .
sleeping
TestReporting#test_really_slow = 2.00 s = .
Finished in 3.001246s, 0.6664 runs/s, 0.6664 assertions/s.
2 runs, 2 assertions, 0 failures, 0 errors, 0 skips
require 'minitest/autorun'
class TestReporting < Minitest::Test
def test_slow
puts "sleeping"
sleep 1
pass
end
def test_really_slow
puts "sleeping"
sleep 2
pass
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment