Skip to content

Instantly share code, notes, and snippets.

@phiggins
Created February 4, 2012 23:09
Show Gist options
  • Save phiggins/1740999 to your computer and use it in GitHub Desktop.
Save phiggins/1740999 to your computer and use it in GitHub Desktop.
MiniTest commandline
require 'minitest/autorun'
describe "bar" do
it "tests stuff" do
assert true
end
end
require 'minitest/autorun'
p MiniTest::Unit::VERSION
describe "foo" do
it "tests stuff" do
assert true
end
end
pete@balloon ~/projects/minitest $ ruby foo_test.rb bar_test.rb
"1.6.0"
Loaded suite foo_test
Started
.
Finished in 0.000291 seconds.
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
Test run options: --seed 23037
pete@balloon ~/projects/minitest $ ruby -Ilib foo_test.rb bar_test.rb
"2.11.1"
Run options: --seed 48566
# Running tests:
.
Finished tests in 0.000550s, 1817.1906 tests/s, 1817.1906 assertions/s.
1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment