forked from aiaio/harvest
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
44 lines (36 loc) · 850 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- ruby -*-
require 'rubygems'
require 'rake'
require 'rake/testtask'
require './lib/harvest.rb'
desc 'Default: run all tests.'
task :default => :test_all
namespace :test do
Rake::TestTask.new(:resources) do |t|
t.libs << 'lib'
t.pattern = 'test/unit/resources/*_test.rb'
t.verbose = false
end
Rake::TestTask.new(:base) do |t|
t.libs << 'lib'
t.pattern = 'test/unit/*_test.rb'
t.verbose = false
end
Rake::TestTask.new(:integration) do |t|
t.libs << 'lib'
t.pattern = 'test/integration/*_test.rb'
t.verbose = false
end
end
desc "Test everything."
task :test_all do
errors = %w(test:resources test:base).collect do |task|
begin
Rake::Task[task].invoke
nil
rescue => e
task
end
end.compact
abort "Errors running #{errors.to_sentence}!" if errors.any?
end