File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ BuildingsPy Changelog
4
4
Version 5.2.0, xxxx
5
5
^^^^^^^^^^^^^^^^^^^
6
6
7
+ - In buildingspy/development/regressiontest.py, add option to get the coverage
8
+ rate, i.e., what percentage of examples are covered by regression tests.
9
+ (https://github.com/lbl-srg/BuildingsPy/issues/253)
7
10
- In buildingspy/development/regressiontest.py, add option to create reference
8
11
results in batch mode.
9
12
(https://github.com/lbl-srg/BuildingsPy/issues/560)
Original file line number Diff line number Diff line change @@ -597,7 +597,6 @@ def getModelicaCommand(self):
597
597
elif self ._modelica_tool != 'dymola' :
598
598
return 'jm_ipython.sh'
599
599
else :
600
- return "C://Program Files//Dymola 2023x//bin64//Dymola"
601
600
return self ._modelica_tool
602
601
603
602
def isExecutable (self , program ):
@@ -4355,7 +4354,7 @@ def getCoverage(self):
4355
4354
) and not filepath .endswith (('package.mo' , '.order' )):
4356
4355
all_examples .append (filepath )
4357
4356
4358
- n_tested_examples = len (temp_data )
4357
+ n_tested_examples = len (self . _data )
4359
4358
n_examples = len (all_examples )
4360
4359
if n_examples > 0 :
4361
4360
coverage = round (n_tested_examples / n_examples , 2 ) * 100
You can’t perform that action at this time.
0 commit comments