Skip to content

Commit

Permalink
Added TEST=filename option to all the test targets.
Browse files Browse the repository at this point in the history
git-svn-id: http://rubygems.rubyforge.org/svn/trunk@374 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information
jimweirich committed Jul 3, 2004
1 parent 37dc117 commit 00c090d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions rubygems/Rakefile
Expand Up @@ -20,17 +20,20 @@ task :default => [:test]

desc "Run unit tests"
task :test do
ruby %{-Ilib -rscripts/runtest -e 'run_tests("test/test*.rb", true)'}
test_name = ENV['TEST'] || 'test/test*.rb'
ruby %{-Ilib -rscripts/runtest -e 'run_tests("#{test_name}", true)'}
end

desc "Run Functional Tests"
task :functional do
ruby %{-Ilib -rscripts/runtest -e 'run_tests("test/functional.rb", true)'}
test_name = ENV['TEST'] || 'test/functional.rb'
ruby %{-Ilib -rscripts/runtest -e 'run_tests("#{test_name}", true)'}
end

desc "Run All Tests"
task :alltests do
ruby %{-Ilib -rscripts/runtest -e 'run_tests("test/{test,functional}*.rb", true)'}
test_name = ENV['TEST'] || 'test/{test,functional}*.rb'
ruby %{-Ilib -rscripts/runtest -e 'run_tests("#{test_name}", true)'}
end


Expand Down

0 comments on commit 00c090d

Please sign in to comment.