forked from comfy/comfortable-mexican-sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (27 loc) · 671 Bytes
/
Rakefile
File metadata and controls
33 lines (27 loc) · 671 Bytes
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
require 'bundler'
Bundler.setup
require 'rake/testtask'
Rake::TestTask.new(:ci) do |t|
t.libs << 'test'
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
t.warning = false
end
require_relative 'config/application'
ComfortableMexicanSofa::Application.load_tasks
namespace :test do
Rake::TestTask.new(:lib) do |t|
t.libs << 'test'
t.pattern = 'test/lib/**/*_test.rb'
t.verbose = true
end
Rake::TestTask.new(:generators) do |t|
t.libs << 'test'
t.pattern = 'test/generators/**/*_test.rb'
t.verbose = true
end
end
Rake::Task[:test].enhance do
Rake::Task['test:lib'].invoke
Rake::Task['test:generators'].invoke
end