Enable regression testing of TEASER output with BuildingsPy
Created by: marcusfuchs
For quality control, I think it would be really useful if we could easily run all models generated from a TEASER project as regression tests. With BuildingsPy this can be achieved fairly easy. As TEASER outputs a Modelica package, all that is need for this is to add the following things to the output:
- Add a script e.g.
/Resources/Scripts/runUnitTests.py
similar to https://github.com/RWTH-EBC/AixLib/blob/development/bin/02_CITests/UnitTests/runUnitTests.py - Add annotations to each building model that enable using the model as a regression test
- Add MOS scripts to run the regression tests as in https://github.com/RWTH-EBC/AixLib/tree/development/AixLib/Resources/Scripts/Dymola
This way, BuildingsPy can directly run the simulation of all buildings as a regression test and generate reference results. Then users can always verify whether the models still give the same results.
I can suggest an implementation for this, but feedback and help is of course very welcome