NREL / openstudio-common-measures-gem

Other
8 stars 15 forks source link

Do not merge: just testing the CI with a Python measure #135

Open DavidGoldwasser opened 1 year ago

DavidGoldwasser commented 1 year ago

I can't run test locally (at least when not using measure tester gem) I want to see what it is like on CI. It could be that measure tester gem would work locally, but I just tried to use OpenStudio to run a single measure test python script

dgoldwas:0:openstudio-common-measures-gem$ openstudio lib/measures/IncreaseRoofRValuePython/tests/test_measure.py E, [2023-05-15T09:25:25.756496 #21118] ERROR -- : Unknown arguments ["lib/measures/IncreaseRoofRValuePython/tests/test_measure.py"] found Usage: openstudio [options] []

DavidGoldwasser commented 1 year ago

CI is still 3.5.1 it didn't put Python measure on dashboard, but XcelEDAReportingandQAQC failed, not sure what caused this

Failure: test_example_model(Minitest::Result) [/srv/jenkins/git/openstudio-common-measures-gem/PR-135/1/lib/measures/generic_qaqc/resources/CreateResults.rb:942]: NoMethodError: undefined method >' for nil:NilClass /srv/jenkins/git/openstudio-common-measures-gem/PR-135/1/lib/measures/generic_qaqc/resources/CreateResults.rb:942:inblock in create_results' /srv/jenkins/git/openstudio-common-measures-gem/PR-135/1/lib/measures/generic_qaqc/resources/CreateResults.rb:931:in each' /srv/jenkins/git/openstudio-common-measures-gem/PR-135/1/lib/measures/generic_qaqc/resources/CreateResults.rb:931:increate_results' /srv/jenkins/git/openstudio-common-measures-gem/PR-135/1/lib/measures/XcelEDAReportingandQAQC/measure.rb:166:in run' /srv/jenkins/git/openstudio-common-measures-gem/PR-135/1/lib/measures/XcelEDAReportingandQAQC/tests/XcelEDAReportingandQAQC_Test.rb:231:intest_example_model'

DavidGoldwasser commented 1 year ago

Ok using openstuido labs I get farther, but still missing package. But if I run an OSW with the CLI (with Python measure) that works fine. ModuleNotFoundError: No module named 'pytest'