Skip to content

Instantly share code, notes, and snippets.

@nalanj
Created September 21, 2011 15:59
Show Gist options
  • Select an option

  • Save nalanj/1232462 to your computer and use it in GitHub Desktop.

Select an option

Save nalanj/1232462 to your computer and use it in GitHub Desktop.
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