NREL / OpenStudio-measure-tester-gem

Other
3 stars 0 forks source link

Miscenallenous enhancements #34

Open jmarrec opened 5 years ago

jmarrec commented 5 years ago

image

nllong commented 5 years ago

1) This is very difficult with how the tests work. That is just the nature of unit testing frameworks.

2) If it is a segfault, then I don't think this is possible. Otherwise, I'm sure we could catch it.

3) Loop into item 2.

4) You will need to look into MiniTest to see if this is possible. I know you can do this with RSpec.

5) Yes! we need this.

jmarrec commented 5 years ago

I guess there's something fundamental I don't know which is how this gem works :)

I know each unit test for measures eventually uses minitest. I assumed, likely wrongly, that when I run openstudio measure -r . That it would basically traverse the directory tree until it found tests files to run via minitest, which would make parallelization and printing the measure name before launching the test easy, as well as putting it in try catch statement in case you hit an assert. Reruning only failed tests would be also feasible since you'd just have to parse any existing test_results folder to find those that passed and skip them.

That's not how it works does it?