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
namespace :test do | |
namespace :system do | |
# Run `rails test:system` split into N shards | |
# | |
# @example run the first fifth of the tests | |
# $ rake test:system:shard\['1/5'\] | |
desc 'Run system tests in shards' | |
task :shard, [:shard] => [:environment] do |_, args| | |
tests = Rake::FileList['test/system/**/*_test.rb'] |