NREL / OpenStudio-measure-tester-gem

Other
3 stars 0 forks source link

If set of measures have non-unique test script names, they don't show up properly on primary dashboard #28

Closed DavidGoldwasser closed 5 years ago

DavidGoldwasser commented 5 years ago

Compatibility directory currently names files after the test script. Because many measures have a test named measure_Test.rb they show in dashboard as not loaded on the dashboard, despite the fact that tests ran and can be seen on minitest dashboard.

My basic solution for this that I'll work on in a branch is to rely on class name instead of the test file name. This should generally work, but it still isn't bulletproof. There could be a repo with measures in different directories that share the same class, but this isn't ideally and generally should be avoided anyway. If we did want to address that I could prefix the class name with the containing directories up to the level that the dashboard is being run for.