Created
September 14, 2014 10:30
-
-
Save lucacesari/e65c649ea75fc86543a3 to your computer and use it in GitHub Desktop.
Fabulous testing with Rake and Minitest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this file is located inside test/some_dir/ | |
require 'test_helper' | |
class TestExample < MiniTest::Unit::TestCase | |
def test_version | |
refute_nil MYAPPLICATION::VERSION | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rake/testtask' | |
Rake::TestTask.new do |t| | |
t.libs << 'test' | |
t.pattern = "test/**/*_test.rb" | |
t.warning = true | |
t.verbose = true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this file is located inside test/ | |
require 'minitest/autorun' | |
require 'minitest/pride' | |
require 'my_application' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment