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:
parent
e2ebe0f8f7
commit
34b48ea35e
1 changed files with 10 additions and 0 deletions
10
Rakefile
10
Rakefile
|
@ -37,6 +37,16 @@ Rake::TestTask.new(:test) do |t|
|
|||
t.ruby_opts << '-I.'
|
||||
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 ================================================================
|
||||
|
||||
namespace :test do
|
||||
|
|
Loading…
Reference in a new issue