-
Notifications
You must be signed in to change notification settings - Fork 9
/
Rakefile
49 lines (41 loc) · 1.28 KB
/
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
45
46
47
48
49
# frozen_string_literal: true
# This file is only used to run all tests and collect results on the CI.
# All rake tasks have been moved to tasks.rb.
require 'rake'
require 'rake/testtask'
desc 'Run all tests'
Rake::TestTask.new('test_all') do |t|
t.test_files = Dir['rulesets/tests/*.rb'] + Dir['workflow/tests/*.rb']
t.warning = false
t.verbose = true
end
desc 'Run ruleset tests'
Rake::TestTask.new('test_rulesets') do |t|
t.test_files = Dir['rulesets/tests/*.rb']
t.warning = false
t.verbose = true
end
desc 'Run Sample Files 1 tests'
Rake::TestTask.new('test_sample_files1') do |t|
t.test_files = Dir['workflow/tests/sample_files1_test.rb']
t.warning = false
t.verbose = true
end
desc 'Run Sample Files 2 tests'
Rake::TestTask.new('test_sample_files2') do |t|
t.test_files = Dir['workflow/tests/sample_files2_test.rb']
t.warning = false
t.verbose = true
end
desc 'Run Real Home tests'
Rake::TestTask.new('test_real_homes') do |t|
t.test_files = Dir['workflow/tests/real_homes_test.rb']
t.warning = false
t.verbose = true
end
desc 'Run Other tests'
Rake::TestTask.new('test_other') do |t|
t.test_files = Dir['workflow/tests/*test.rb'] - Dir['workflow/tests/real_homes_test.rb'] - Dir['workflow/tests/sample_files*test.rb']
t.warning = false
t.verbose = true
end