Skip to content
Browse files

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

…ne tests)
  • Loading branch information...
1 parent a288d7a commit 6b4501e75f2732fdd520981955283809793d9404 @timfel timfel committed with rkh May 28, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 Rakefile
View
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

0 comments on commit 6b4501e

Please sign in to comment.
Something went wrong with that request. Please try again.