From a5af93e7ed3db1511ff76839908edcdc48e11d0e Mon Sep 17 00:00:00 2001 From: Dan Macumber Date: Mon, 18 Jun 2018 22:25:04 -0600 Subject: [PATCH] Get test results to show up when running from CLI --- openstudiocore/src/cli/openstudio_cli.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openstudiocore/src/cli/openstudio_cli.rb b/openstudiocore/src/cli/openstudio_cli.rb index b15bbc7d3f4..4fd9693dea4 100644 --- a/openstudiocore/src/cli/openstudio_cli.rb +++ b/openstudiocore/src/cli/openstudio_cli.rb @@ -1194,6 +1194,14 @@ def execute(sub_argv) # load openstudio_measure_tester gem #begin + require 'minitest' + require 'minitest/reporters' + + # Minitest Reports use a plugin that is normally found by Minitest::load_plugins using Gem.find + # until Gem.find is overloaded to find embedded gems, we will manually load the plugin here + require 'minitest/minitest_reporter_plugin' + Minitest.extensions << 'minitest_reporter' + require 'openstudio_measure_tester' #rescue LoadError #puts "Cannot load 'openstudio_measure_tester'"