Created
August 26, 2014 12:30
-
-
Save wtnabe/058f4f1d612ba75ed0c9 to your computer and use it in GitHub Desktop.
rake task that make any test tools exclude a specific pattern
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
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