Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions addons/gut/diff_tool.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ func get_total_count():
return _total_count

func get_short_summary():
var text = str(_strutils.truncate_string(str(_value_1), 50),
var gc = GutUtils.GutConfig.new()
gc.load_options(GutUtils.EditorGlobals.editor_run_gut_config_path)
var max_length = gc.options["max_console_output_length"]
# print(max_length)
var text = str(_strutils.truncate_string(str(_value_1), max_length),
' ', _compare.get_compare_symbol(are_equal), ' ',
_strutils.truncate_string(str(_value_2), 50))
_strutils.truncate_string(str(_value_2), max_length))
if(!are_equal):
text += str(' ', get_different_count(), ' of ', get_total_count(),
' ', _desc_things, ' do not match.')
Expand Down
1 change: 1 addition & 0 deletions addons/gut/gui/GutBottomPanel.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ size_flags_horizontal = 3
size_flags_vertical = 3

[node name="ShortcutDialog" parent="." instance=ExtResource("7_srqj5")]
size = Vector2i(1512, 1571)
visible = false

[node name="ShellOutOptions" parent="." instance=ExtResource("7_xv2r3")]
Expand Down
1 change: 1 addition & 0 deletions addons/gut/gut_config.gd
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var default_options = {
wait_log_delay = .5,

gut_on_top = true,
max_console_output_length = 50
}


Expand Down