Created
September 21, 2011 15:59
-
-
Save nalanj/1232462 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class FTestHelper | |
| def self.execute_tests(*paths) | |
| paths.each do |path| | |
| FileList[path].to_a.each { |file| require File.expand_path(file) } | |
| end | |
| end | |
| end | |
| namespace :ftest do | |
| desc "Prepares tests to run quickly" | |
| task :prepare do | |
| $LOAD_PATH << File.expand_path("test/") | |
| end | |
| end | |
| desc "Runs all tests more quickly" | |
| task :ftest => ["ftest:prepare", "test:prepare"] do | |
| FTestHelper.execute_tests("test/unit/**/*_test.rb", "test/functional/**/*_test.rb", "test/integration/**/*_test.rb") | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment