NREL / ComStock

National scale modeling of the U.S. commercial building stock supported by U.S. DOE, LADWP, and others and maintained by NREL
Other
29 stars 7 forks source link

Fix issues in the resources/measure test #135

Closed wenyikuang closed 6 months ago

wenyikuang commented 6 months ago

Since some of the measure under resources/ has been renamed and hasn't been updated in the resource_measure_test.txt . (for example: https://github.com/NREL/ComStock/commit/dfd5efe699a47cb17755ad8d4f57675123c60420) And some new measure test has been added without import the test_helper(for example: https://github.com/NREL/ComStock/blame/main/resources/measures/create_typical_building_from_model/tests/test_hvac.rb) the measure test result cannot be executed correctly in docker and ci, the missing file in the resource_measure_test.txt will cause the rake test cannot continue since it cannot find the file. For example: https://ci.openstudio.net/blue/organizations/jenkins/comstock-internal/detail/main/33/pipeline/49

You will notice the run resources measure tests report as success but actually it cannot Archiving artifacts due to rake execution aborted.

This PR is basically fix this issue by:

Pull Request Author

This pull request makes changes to (select all the apply):

Author pull request checklist:

Review Checklist

This will not be exhaustively relevant to every PR.

ComStock Licensing Language - Add to Beginning of Each Code File

# ComStock™, Copyright (c) 2023 Alliance for Sustainable Energy, LLC. All rights reserved.
# See top level LICENSE.txt file for license terms.