From f20bd89dc4a7bf14a88b1effcaa1887b29314525 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Mon, 5 Sep 2022 20:35:53 +0200 Subject: gui: split GUI into Terminal components --- addons/gut/gui/GutRunner.gd | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'addons/gut/gui/GutRunner.gd') diff --git a/addons/gut/gui/GutRunner.gd b/addons/gut/gui/GutRunner.gd index b2b16f2..608fc26 100644 --- a/addons/gut/gui/GutRunner.gd +++ b/addons/gut/gui/GutRunner.gd @@ -22,8 +22,7 @@ onready var _gut_layer = $GutLayer func _ready(): if(_gut_config == null): _gut_config = GutConfig.new() - _gut_config.load_options(RUNNER_JSON_PATH) - + _gut_config.load_panel_options(RUNNER_JSON_PATH) # The command line will call run_tests on its own. When used from the panel # we have to kick off the tests ourselves b/c there's no way I know of to @@ -55,9 +54,7 @@ func run_tests(): func _write_results(): - # bbcode_text appears to be empty. I'm not 100% sure why. Until that is - # figured out we have to just get the text which stinks. - var content = _gut.get_gui().get_text_box().text + var content = _gut.get_logger().get_gui_bbcode() var f = File.new() var result = f.open(RESULT_FILE, f.WRITE) @@ -68,7 +65,7 @@ func _write_results(): print('ERROR Could not save bbcode, result = ', result) var exporter = ResultExporter.new() - var f_result = exporter.write_summary_file(_gut, RESULT_JSON) + var f_result = exporter.write_json_file(_gut, RESULT_JSON) _wrote_results = true -- cgit v1.2.3