forked from thinreports/thinreports-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
28 lines (23 loc) · 742 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
require 'bundler/gem_tasks'
require 'rake/testtask'
task default: :test
Rake::TestTask.new do |t|
t.name = 'test:main'
t.description = 'Run tests for main'
t.libs << 'test/main'
t.test_files = Dir['test/main/**/test_*.rb']
end
Rake::TestTask.new do |t|
t.name = 'test:basic_report'
t.description = 'Run tests for basic report'
t.libs << 'test' << 'test/basic_report'
t.test_files = Dir['test/basic_report/**/test_*.rb']
end
Rake::TestTask.new do |t|
t.name = 'test:section_report'
t.description = 'Run tests for section report'
t.libs << 'test' << 'test/section_report'
t.test_files = Dir['test/section_report/**/test_*.rb']
end
desc 'Run all tests'
task test: %i(test:main test:basic_report test:section_report)