diff --git a/buildingspy/CHANGES.txt b/buildingspy/CHANGES.txt index 97b17b2f..318a4dab 100644 --- a/buildingspy/CHANGES.txt +++ b/buildingspy/CHANGES.txt @@ -4,6 +4,9 @@ BuildingsPy Changelog Version 5.2.0, xxxx ^^^^^^^^^^^^^^^^^^^ +- In buildingspy/development/regressiontest.py, add option to get the coverage + rate, i.e., what percentage of examples are covered by regression tests. + (https://github.com/lbl-srg/BuildingsPy/issues/253) - In buildingspy/development/regressiontest.py, add option to create reference results in batch mode. (https://github.com/lbl-srg/BuildingsPy/issues/560) diff --git a/buildingspy/development/regressiontest.py b/buildingspy/development/regressiontest.py index b11f2c7d..41d3cb80 100644 --- a/buildingspy/development/regressiontest.py +++ b/buildingspy/development/regressiontest.py @@ -597,7 +597,6 @@ def getModelicaCommand(self): elif self._modelica_tool != 'dymola': return 'jm_ipython.sh' else: - return "C://Program Files//Dymola 2023x//bin64//Dymola" return self._modelica_tool def isExecutable(self, program): @@ -4355,7 +4354,7 @@ def getCoverage(self): ) and not filepath.endswith(('package.mo', '.order')): all_examples.append(filepath) - n_tested_examples = len(temp_data) + n_tested_examples = len(self._data) n_examples = len(all_examples) if n_examples > 0: coverage = round(n_tested_examples / n_examples, 2) * 100