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

Revision history [back]

To load OpenStudio Ruby bindings from your system Ruby it is required to install Ruby 2.2.4. You will also have to ensure that the directory containing openstudio.rb (e.g. C:\openstudio-2.1.0\Ruby) is in your Ruby Path, either by setting the environment variable RUBYLIB or passing the path on the command line (e.g. ruby -I "C:/openstudio-2.1.0/Ruby/" measure_test.rb).

Because the OpenStudio CLI has Ruby built in, you can also run measure tests directly from the CLI. Just do openstudio.exe measure_test.rb.

That doesn't explain why your test output is empty, do you have tests defined in your test file?