Skip to content

Commit 93837af

Browse files
committed
namespace tests
1 parent 08bfebc commit 93837af

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Rakefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,24 @@ rescue LoadError
2424
end
2525

2626
require 'rake/testtask'
27-
Rake::TestTask.new(:test) do |test|
27+
namespace :test do
28+
Rake::TestTask.new(:units) do |test|
2829
test.libs << 'lib' << 'test/lib'
29-
test.pattern = 'test/**/*test.rb'
30+
test.pattern = 'test/units/*test.rb'
3031
test.verbose = true
3132
end
33+
Rake::TestTask.new(:integration) do |test|
34+
test.libs << 'lib' << 'test/lib'
35+
test.pattern = 'test/integration/*test.rb'
36+
test.verbose = true
37+
end
38+
end
39+
40+
desc "Run all tests"
41+
task :test do
42+
Rake::Task['test:units'].invoke
43+
Rake::Task['test:integration'].invoke
44+
end
3245

3346
begin
3447
require 'rcov/rcovtask'

0 commit comments

Comments
 (0)