Skip to content

Commit

Permalink
test: treat ARGV after "test" as options for Test::Unit::AutoRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruka Yoshihara committed Dec 13, 2012
1 parent 5a6d29e commit 3c68ab7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -40,7 +40,12 @@ end

desc "Run tests"
task :test do
run_test_options = ARGV - ["test"]
task_index = ARGV.index("test")
if task_index
run_test_options = ARGV[(task_index + 1)..-1]
else
run_test_options = []
end
tests_exit_status = ruby("test/run-test.rb", *run_test_options)
exit(tests_exit_status)
end

0 comments on commit 3c68ab7

Please sign in to comment.