Rakefile in thinreports-0.12.1 vs Rakefile in thinreports-0.13.0
- old
+ new
@@ -2,21 +2,27 @@
require 'rake/testtask'
task default: :test
Rake::TestTask.new do |t|
- t.name = 'test:units'
- t.description = 'Run unit tests'
- t.libs << 'test'
- t.test_files = Dir['test/units/**/test_*.rb']
+ 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:features'
- t.description = 'Run feature tests'
- t.libs << 'test/features'
- t.test_files = Dir['test/features/*/test_*.rb']
- t.warning = false
+ 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
-desc 'Run unit and feature tests'
-task test: %i( test:units test:features )
+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)