Rakefile in sklik-api-0.0.16 vs Rakefile in sklik-api-0.1.0
- old
+ new
@@ -34,13 +34,37 @@
FileUtils.cp(File.join(CONF_DIR, "access.rb.example"), File.join(CONF_DIR, "access.rb") )
puts "WARNING: you need to setup your config/access.rb -> I created this file for you with example usage"
end
require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/unit/*.rb'
- test.verbose = true
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib' << 'test'
+ t.test_files = FileList['test/functional/**/*_test.rb', 'test/unit/**/*_test.rb','test/integration/**/*_test.rb']
+ t.warning = false
+ t.verbose = false
+end
+
+namespace :test do
+ Rake::TestTask.new(:unit) do |t|
+ t.libs << 'lib' << 'test'
+ t.test_files = FileList['test/unit/**/*_test.rb']
+ t.warning = false
+ t.verbose = false
+ end
+
+ Rake::TestTask.new(:functional) do |t|
+ t.libs << 'lib' << 'test'
+ t.test_files = FileList['test/functional/**/*_test.rb']
+ t.warning = false
+ t.verbose = false
+ end
+
+ Rake::TestTask.new(:integration) do |t|
+ t.libs << 'lib' << 'test'
+ t.test_files = FileList['test/integration/**/*_test.rb']
+ t.warning = false
+ t.verbose = false
+ end
end
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'