forked from NREL/resstock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (35 loc) · 1.09 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
# 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 'Perform tasks related to unit tests'
namespace :unit_tests do
desc 'Run integrity checks for all projects'
Rake::TestTask.new('project_integrity_checks') do |t|
t.test_files = Dir['project_*/tests/*.rb']
t.warning = false
t.verbose = true
end
desc 'Run all integrity check unit tests'
Rake::TestTask.new('integrity_check_tests') do |t|
t.test_files = Dir['test/test_integrity_checks.rb']
t.warning = false
t.verbose = true
end
desc 'Run all measure tests'
Rake::TestTask.new('measure_tests') do |t|
t.test_files = Dir['measures/*/tests/*.rb']
t.warning = false
t.verbose = true
end
end
desc 'Perform tasks related to analysis tests'
namespace :workflow do
desc 'Run analysis tests for sampled datapoints'
Rake::TestTask.new('analysis_tests') do |t|
t.test_files = Dir['test/test_run_analysis.rb']
t.warning = false
t.verbose = true
end
end