-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathRakefile
35 lines (29 loc) · 892 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
29
30
31
32
33
34
35
# 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['*/tests/*.rb']
t.warning = false
t.verbose = true
end
desc 'Run measure unit tests'
Rake::TestTask.new('test_measures') do |t|
t.test_files = Dir['*/tests/*.rb'] - Dir['workflow/tests/*.rb']
t.warning = false
t.verbose = true
end
desc 'Run workflow1 tests'
Rake::TestTask.new('test_workflow1') do |t|
t.test_files = Dir['workflow/tests/test_simulations1.rb']
t.warning = false
t.verbose = true
end
desc 'Run workflow2 tests'
Rake::TestTask.new('test_workflow2') do |t|
t.test_files = Dir['workflow/tests/*.rb'] - Dir['workflow/tests/test_simulations1.rb']
t.warning = false
t.verbose = true
end