1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add a test:core task to quickly run core tests (e.g non-template-engine tests)

This commit is contained in:
Tim Felgentreff 2011-05-28 18:21:59 +02:00
parent e2ebe0f8f7
commit 34b48ea35e

View file

@ -37,6 +37,16 @@ Rake::TestTask.new(:test) do |t|
t.ruby_opts << '-I.' t.ruby_opts << '-I.'
end end
Rake::TestTask.new(:"test:core") do |t|
core_tests = %w[base delegator encoding extensions filter
helpers mapped_error middleware radius rdoc
readme request response result route_added_hook
routing server settings sinatra static templates]
t.test_files = core_tests.map {|n| "test/#{n}_test.rb"}
t.ruby_opts = ["-rubygems"] if defined? Gem
t.ruby_opts << "-I."
end
# Rcov ================================================================ # Rcov ================================================================
namespace :test do namespace :test do