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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# File 'lib/openstudio-standards/btap/costing/test_run_costing_tests.rb', line 11
def test_costing_all()
test_cli = File.join(__dir__, "btap_results", "tests", "test_helper_nocli.rb")
building_types = [
'HighriseApartment',
'SmallHotel',
'LargeHotel',
'LowriseApartment',
'MidriseApartment',
'SecondarySchool',
'LargeOffice',
'MediumOffice',
'PrimarySchool',
'RetailStandalone',
'RetailStripmall',
'SmallOffice',
'Warehouse',
'FullServiceRestaurant',
'QuickServiceRestaurant',
]
epw_files = [
"CAN_NT_Yellowknife.AP.719360_CWEC2020.epw"
]
templates = [
"BTAP1980TO2010",
"NECB2011",
"NECB2015",
"NECB2017",
"NECB2020"
]
fuels = [
'NaturalGas',
'Electricity',
'NaturalGasHPGasBackup'
]
test_list = []
building_types.each do |build_type|
epw_files.each do |epw_file|
templates.each do |template|
fuels.each do |fuel|
next if ((template == 'BTAPPRE1980') || (template == 'BTAP1980TO2010')) && (fuel == 'NaturalGasHPGasBackup')
test_list << "#{test_cli} -b " + build_type + " -w " + epw_file + " -t " + template + " -f " + fuel + " -k"
end
end
end
end
puts 'testing these scenarioes'
puts test_list
puts "To change the costing tests being run please edit test_run_costing_tests.rb."
assert(ParallelTests.new.run(test_list), "Some tests failed please ensure all test pass and tests have been updated to reflect the changes you expect before issuing a pull request")
end
|