Skip to content

Commit

Permalink
add a test:core task to quickly run core tests (e.g non-template-engi…
Browse files Browse the repository at this point in the history
…ne tests)
  • Loading branch information
timfel authored and rkh committed Jun 9, 2011
1 parent a288d7a commit 6b4501e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Rakefile
Expand Up @@ -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
Expand Down

0 comments on commit 6b4501e

Please sign in to comment.