Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

../measure/tests subfolder missing in the copied measures

asked 2023-07-02 20:06:44 -0600

Ro_Adh's avatar

updated 2023-07-03 12:03:50 -0600

I am trying to run unit test of a OpenStudio measure (say 'my_measure') copied and edited from a BCL measure. However, I could not find 'tests' subfolder inside the ...OpenStudio\Measures\my_measure folder to access my_measure_tests.rb. The folder is in usual location when I create a completely new measure. Am I missing something?

I am using OpenStudioApp 1.6.0.

edit retag flag offensive close merge delete

Comments

Which BCL measure are you copying exactly? Does it have the tests/ folder in your local BCL folder?

Julien Marrec's avatar Julien Marrec  ( 2023-07-04 10:52:05 -0600 )edit
1

I just tried copying the "Thermal Briding and Derating - TDB" measure in the OS App 1.6.0, and it does have the tests/ folder and all files within.

Julien Marrec's avatar Julien Marrec  ( 2023-07-04 10:55:37 -0600 )edit

I copied 'Heating Coils Gas Multiplier' under HVAC>>Heating. I checked the BCL folder of this measure, and it doesn't contain the test subfolder. Does that mean not every downloaded measure contains a test file?

Ro_Adh's avatar Ro_Adh  ( 2023-07-05 18:45:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-06 01:52:48 -0600

Measures, to be uploaded to the BCL, are not required to have a test folder, or passing tests if any (some measures might have failing tests). As a reminder, everyone can technically upload a measure to the BCL, after setting up a measures repo in a specific format and requesting inclusion.

As an FYI, this specific measure comes from https://github.com/NREL/openstudio-ca...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2023-07-02 20:06:44 -0600

Seen: 87 times

Last updated: Jul 06 '23