Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created August 26, 2014 12:30
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 wtnabe/058f4f1d612ba75ed0c9 to your computer and use it in GitHub Desktop.
Save wtnabe/058f4f1d612ba75ed0c9 to your computer and use it in GitHub Desktop.
rake task that make any test tools exclude a specific pattern
Rake::TestTask.new do |t|
test_files = FileList['test/**/*_test.rb']
test_files -= FileList['test/**/*_request_test.rb'] unless ENV['FORCE_REQUEST']
t.test_files = test_files
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment