Gut icon indicating copy to clipboard operation
Gut copied to clipboard

Godot 4.0 adaption

Open bitbrain opened this issue 1 year ago • 2 comments

Once https://github.com/bitwes/Gut/pull/379 is merged this PR should become more readable.

This branch is another attempt at porting this addon to Godot 4. For most of the files, I used the --convert-3to4 flag on the Godot 4 (alpha13) executable.

I used latest master for this, why it also contains more commits than just the Godot 4 changes.

The other files need to be migrated manually.

Output:

Godot Engine v4.0.alpha.custom_build.cca072aa8 - https://godotengine.org
 
Starting conversion.
Trying to convert       1/182 file - "BigFont.tres" with size - 0 KB
    File was not changed, checking took 10 ms.
Trying to convert       2/182 file - "BigFontTheme.tres" with size - 0 KB
    File was not changed, checking took 10 ms.
Trying to convert       3/182 file - "default_env.tres" with size - 0 KB
    File was not changed, checking took 12 ms.
Trying to convert       4/182 file - "project.godot" with size - 0 KB
    File was not changed, checking took 0 ms.
Trying to convert       5/182 file - "test/gut_test.gd" with size - 1 KB
    File was not changed, checking took 44 ms.
Trying to convert       6/182 file - "test/post_run_export_json.gd" with size - 0 KB
    File was not changed, checking took 18 ms.
Trying to convert       7/182 file - "test/unit/test_autofree.gd" with size - 1 KB
    File was changed, conversion took 45 ms.
Trying to convert       8/182 file - "test/unit/test_command_line_auto_load.gd" with size - 0 KB
    File was not changed, checking took 18 ms.
Trying to convert       9/182 file - "test/unit/test_comparator.gd" with size - 7 KB
    File was not changed, checking took 147 ms.
Trying to convert       10/182 file - "test/unit/test_compare_result.gd" with size - 0 KB
    File was not changed, checking took 23 ms.
Trying to convert       11/182 file - "test/unit/test_diff_formatter.gd" with size - 5 KB
    File was changed, conversion took 98 ms.
Trying to convert       12/182 file - "test/unit/test_diff_tool.gd" with size - 12 KB
    File was not changed, checking took 247 ms.
Trying to convert       13/182 file - "test/unit/test_doubler.gd" with size - 22 KB
    File was changed, conversion took 415 ms.
Trying to convert       14/182 file - "test/unit/test_gut.gd" with size - 24 KB
    File was changed, conversion took 433 ms.
Trying to convert       15/182 file - "test/unit/test_gut_directory.gd" with size - 5 KB
    File was changed, conversion took 114 ms.
Trying to convert       16/182 file - "test/unit/test_gut_yielding.gd" with size - 7 KB
    File was changed, conversion took 132 ms.
Trying to convert       17/182 file - "test/unit/test_i288_wait_times.gd" with size - 1 KB
    File was changed, conversion took 38 ms.
Trying to convert       18/182 file - "test/unit/test_input_factory.gd" with size - 5 KB
    File was changed, conversion took 106 ms.
Trying to convert       19/182 file - "test/unit/test_input_sender.gd" with size - 20 KB
    File was changed, conversion took 391 ms.
Trying to convert       20/182 file - "test/unit/test_junit_xml_export.gd" with size - 2 KB
    File was changed, conversion took 65 ms.
Trying to convert       21/182 file - "test/unit/test_logger.gd" with size - 2 KB
    File was not changed, checking took 53 ms.
Trying to convert       22/182 file - "test/unit/test_method_maker.gd" with size - 5 KB
    File was not changed, checking took 116 ms.
Trying to convert       23/182 file - "test/unit/test_one_to_many.gd" with size - 1 KB
    File was not changed, checking took 31 ms.
Trying to convert       24/182 file - "test/unit/test_orphan_counter.gd" with size - 1 KB
    File was not changed, checking took 37 ms.
Trying to convert       25/182 file - "test/unit/test_parameter_factory.gd" with size - 1 KB
    File was not changed, checking took 35 ms.
Trying to convert       26/182 file - "test/unit/test_parameter_handler.gd" with size - 1 KB
    File was not changed, checking took 36 ms.
Trying to convert       27/182 file - "test/unit/test_print.gd" with size - 4 KB
    File was changed, conversion took 82 ms.
Trying to convert       28/182 file - "test/unit/test_result_exporter.gd" with size - 7 KB
    File was not changed, checking took 138 ms.
Trying to convert       29/182 file - "test/unit/test_signal_watcher.gd" with size - 9 KB
    File was changed, conversion took 182 ms.
Trying to convert       30/182 file - "test/unit/test_spy.gd" with size - 5 KB
    File was not changed, checking took 98 ms.
Trying to convert       31/182 file - "test/unit/test_strutils.gd" with size - 5 KB
    File was changed, conversion took 112 ms.
Trying to convert       32/182 file - "test/unit/test_stubber.gd" with size - 9 KB
    File was changed, conversion took 192 ms.
Trying to convert       33/182 file - "test/unit/test_stub_params.gd" with size - 4 KB
    File was not changed, checking took 89 ms.
Trying to convert       34/182 file - "test/unit/test_summary.gd" with size - 4 KB
    File was not changed, checking took 99 ms.
Trying to convert       35/182 file - "test/unit/test_test.gd" with size - 66 KB
    File was changed, conversion took 1208 ms.
Trying to convert       36/182 file - "test/unit/test_test_collector.gd" with size - 7 KB
    File was changed, conversion took 167 ms.
Trying to convert       37/182 file - "test/unit/test_utils.gd" with size - 3 KB
    File was changed, conversion took 71 ms.
Trying to convert       38/182 file - "test/unit/verify_signal_watches_are_cleared.gd" with size - 0 KB
    File was not changed, checking took 26 ms.
Trying to convert       39/182 file - "test/unit/test_bugs/test_i368_WebSocketClient_double.gd" with size - 1 KB
    File was changed, conversion took 34 ms.
Trying to convert       40/182 file - "test/samples/test_before_after.gd" with size - 0 KB
    File was not changed, checking took 23 ms.
Trying to convert       41/182 file - "test/samples/test_output_demo.gd" with size - 0 KB
    File was not changed, checking took 22 ms.
Trying to convert       42/182 file - "test/samples/test_readme_examples.gd" with size - 25 KB
    File was changed, conversion took 428 ms.
Trying to convert       43/182 file - "test/samples/test_sample_all_passed.gd" with size - 0 KB
    File was not changed, checking took 16 ms.
Trying to convert       44/182 file - "test/samples/test_sample_one.gd" with size - 1 KB
    File was changed, conversion took 37 ms.
Trying to convert       45/182 file - "test/samples/test_sample_two.gd" with size - 0 KB
    File was not changed, checking took 14 ms.
Trying to convert       46/182 file - "test/samples/two_pass_pending_fail.gd" with size - 0 KB
    File was not changed, checking took 19 ms.
Trying to convert       47/182 file - "test/resources/ExtendsNativeScript.gd" with size - 0 KB
    File was not changed, checking took 13 ms.
Trying to convert       48/182 file - "test/resources/has_asserts_in_beforeall_and_afterall.gd" with size - 1 KB
    File was not changed, checking took 34 ms.
Trying to convert       49/182 file - "test/resources/non_hook_script.gd" with size - 0 KB
    File was not changed, checking took 11 ms.
Trying to convert       50/182 file - "test/resources/per_test_assert_tracking.gd" with size - 0 KB
    File was not changed, checking took 17 ms.
Trying to convert       51/182 file - "test/resources/post_run_script.gd" with size - 0 KB
    File was not changed, checking took 14 ms.
Trying to convert       52/182 file - "test/resources/pre_run_script.gd" with size - 0 KB
    File was not changed, checking took 14 ms.
Trying to convert       53/182 file - "test/resources/SceneNoScript.tscn" with size - 0 KB
    File was changed, conversion took 15 ms.
Trying to convert       54/182 file - "test/resources/state_check_tests.gd" with size - 1 KB
    File was not changed, checking took 46 ms.
Trying to convert       55/182 file - "test/resources/yield_in_before_after_methods.gd" with size - 1 KB
    File was changed, conversion took 31 ms.
Trying to convert       56/182 file - "test/resources/test_assert_setget_test_objects/TestScene.tscn" with size - 0 KB
    File was not changed, checking took 20 ms.
Trying to convert       57/182 file - "test/resources/test_assert_setget_test_objects/test_node.gd" with size - 1 KB
    File was changed, conversion took 36 ms.
Trying to convert       58/182 file - "test/resources/test_assert_setget_test_objects/test_scene.gd" with size - 0 KB
    File was changed, conversion took 18 ms.
Trying to convert       59/182 file - "test/resources/test_assert_setget_test_objects/readme_examples/health.gd" with size - 0 KB
    File was changed, conversion took 19 ms.
Trying to convert       60/182 file - "test/resources/test_assert_setget_test_objects/readme_examples/HealthBar.tscn" with size - 
0 KB
    File was changed, conversion took 22 ms.
Trying to convert       61/182 file - "test/resources/test_assert_setget_test_objects/readme_examples/health_bar.gd" with size - 0 KB
    File was changed, conversion took 19 ms.
Trying to convert       62/182 file - "test/resources/stub_test_objects/has_stub_metadata.gd" with size - 0 KB
    File was not changed, checking took 20 ms.
Trying to convert       63/182 file - "test/resources/stub_test_objects/init_parameters.gd" with size - 0 KB
    File was not changed, checking took 14 ms.
Trying to convert       64/182 file - "test/resources/stub_test_objects/to_stub.gd" with size - 0 KB
    File was not changed, checking took 18 ms.
Trying to convert       65/182 file - "test/resources/spy_test_objects/simple.gd" with size - 0 KB
    File was not changed, checking took 13 ms.
Trying to convert       66/182 file - "test/resources/replace_node_scenes/arena.gd" with size - 0 KB
    File was not changed, checking took 16 ms.
Trying to convert       67/182 file - "test/resources/replace_node_scenes/Arena.tscn" with size - 0 KB
    File was not changed, checking took 22 ms.
Trying to convert       68/182 file - "test/resources/parsing_and_loading_samples/bad_prefix.gd" with size - 0 KB
    File was not changed, checking took 15 ms.
Trying to convert       69/182 file - "test/resources/parsing_and_loading_samples/ConstObject.tscn" with size - 0 KB
    File was not changed, checking took 12 ms.
Trying to convert       70/182 file - "test/resources/parsing_and_loading_samples/const_object.gd" with size - 0 KB
    File was not changed, checking took 18 ms.
Trying to convert       71/182 file - "test/resources/parsing_and_loading_samples/extends_another_thing.gd" with size - 0 KB
    File was not changed, checking took 16 ms.
Trying to convert       72/182 file - "test/resources/parsing_and_loading_samples/has_inner_class.gd" with size - 0 KB
    File was not changed, checking took 23 ms.
Trying to convert       73/182 file - "test/resources/parsing_and_loading_samples/inner_classes_check_before_after.gd" with size - 0 KB
    File was not changed, checking took 26 ms.
Trying to convert       74/182 file - "test/resources/parsing_and_loading_samples/parse_samples.gd" with size - 0 KB
    File was not changed, checking took 15 ms.
Trying to convert       75/182 file - "test/resources/parsing_and_loading_samples/test_has_inner_class.gd" with size - 0 KB
    File was not changed, checking took 25 ms.
Trying to convert       76/182 file - "test/resources/parsing_and_loading_samples/test_only_inner_classes.gd" with size - 0 KB    
    File was not changed, checking took 18 ms.
Trying to convert       77/182 file - "test/resources/parsing_and_loading_samples/test_samples.gd" with size - 1 KB
    File was changed, conversion took 36 ms.
Trying to convert       78/182 file - "test/resources/parsing_and_loading_samples/test_samples2.gd" with size - 1 KB
    File was changed, conversion took 36 ms.
Trying to convert       79/182 file - "test/resources/parsing_and_loading_samples/test_samples3.gd" with size - 1 KB
    File was changed, conversion took 36 ms.
Trying to convert       80/182 file - "test/resources/parsing_and_loading_samples/test_with_parameters.gd" with size - 1 KB       
    File was changed, conversion took 36 ms.
Trying to convert       81/182 file - "test/resources/exporter_test_files/test_has_error_and_warning.gd" with size - 0 KB
    File was not changed, checking took 15 ms.
Trying to convert       82/182 file - "test/resources/exporter_test_files/test_simple.gd" with size - 0 KB
    File was not changed, checking took 19 ms.
Trying to convert       83/182 file - "test/resources/exporter_test_files/test_simple_2.gd" with size - 0 KB
    File was not changed, checking took 15 ms.
Trying to convert       84/182 file - "test/resources/exporter_test_files/test_with_inner_classes.gd" with size - 0 KB
    File was not changed, checking took 19 ms.
Trying to convert       85/182 file - "test/resources/doubler_test_objects/class_with_init_params.gd" with size - 0 KB
    File was not changed, checking took 13 ms.
Trying to convert       86/182 file - "test/resources/doubler_test_objects/double_default_parameters.gd" with size - 0 KB
    File was not changed, checking took 13 ms.
Trying to convert       87/182 file - "test/resources/doubler_test_objects/double_extends_node2d.gd" with size - 0 KB
    File was changed, conversion took 15 ms.
Trying to convert       88/182 file - "test/resources/doubler_test_objects/double_extends_window_dialog.gd" with size - 0 KB      
    File was changed, conversion took 14 ms.
Trying to convert       89/182 file - "test/resources/doubler_test_objects/double_me.gd" with size - 0 KB
    File was changed, conversion took 19 ms.
Trying to convert       90/182 file - "test/resources/doubler_test_objects/double_me_scene.gd" with size - 0 KB
    File was changed, conversion took 16 ms.
Trying to convert       91/182 file - "test/resources/doubler_test_objects/double_me_scene.tscn" with size - 0 KB
    File was changed, conversion took 20 ms.
Trying to convert       92/182 file - "test/resources/doubler_test_objects/has_static_method.gd" with size - 0 KB
    File was not changed, checking took 13 ms.
Trying to convert       93/182 file - "test/resources/doubler_test_objects/inner_classes.gd" with size - 0 KB
    File was not changed, checking took 21 ms.
Trying to convert       94/182 file - "test/panel_demo_scripts/test_all_passing.gd" with size - 0 KB
    File was not changed, checking took 23 ms.
Trying to convert       95/182 file - "test/panel_demo_scripts/test_inner_classes.gd" with size - 0 KB
    File was not changed, checking took 23 ms.
Trying to convert       96/182 file - "test/panel_demo_scripts/test_totals_testing.gd" with size - 1 KB
    File was not changed, checking took 33 ms.
Trying to convert       97/182 file - "test/panel_demo_scripts/test_with_parameters.gd" with size - 0 KB
    File was not changed, checking took 21 ms.
Trying to convert       98/182 file - "test/integration/test_doubler_and_spy.gd" with size - 2 KB
    File was not changed, checking took 58 ms.
Trying to convert       99/182 file - "test/integration/test_doubler_and_stubber.gd" with size - 6 KB
    File was changed, conversion took 122 ms.
Trying to convert       100/182 file - "test/integration/test_everything_together.gd" with size - 1 KB
    File was changed, conversion took 32 ms.
Trying to convert       101/182 file - "test/integration/test_gut_and_spy.gd" with size - 0 KB
    File was changed, conversion took 26 ms.
Trying to convert       102/182 file - "test/integration/test_gut_and_stubber.gd" with size - 1 KB
    File was changed, conversion took 59 ms.
Trying to convert       103/182 file - "test/integration/test_gut_import_export.gd" with size - 2 KB
    File was not changed, checking took 62 ms.
Trying to convert       104/182 file - "test/integration/test_gut_integration.gd" with size - 3 KB
    File was changed, conversion took 72 ms.
Trying to convert       105/182 file - "test/integration/test_sample_all_passed_integration.gd" with size - 0 KB
    File was not changed, checking took 17 ms.
Trying to convert       106/182 file - "test/integration/test_test_stubber_doubler.gd" with size - 15 KB
    File was changed, conversion took 286 ms.
Trying to convert       107/182 file - "test/integration/test_this_script_has_a_really_long_name_to_test_display.gd" with size - 0 KB
    File was not changed, checking took 13 ms.
Trying to convert       108/182 file - "templates/test_.gd" with size - 0 KB
    File was not changed, checking took 17 ms.
Trying to convert       109/182 file - "scripts/global.gd" with size - 0 KB
    File was not changed, checking took 18 ms.
Trying to convert       110/182 file - "scripts/main.gd" with size - 5 KB
    File was changed, conversion took 101 ms.
Trying to convert       111/182 file - "scratch/call_func_with_var_as_parameter.gd" with size - 2 KB
    File was not changed, checking took 48 ms.
Trying to convert       112/182 file - "scratch/children.gd" with size - 0 KB
    File was changed, conversion took 20 ms.
Trying to convert       113/182 file - "scratch/double_a_node_in_tree.gd" with size - 1 KB
    File was changed, conversion took 37 ms.
Trying to convert       114/182 file - "scratch/find_bad_methods.gd" with size - 3 KB
    File was changed, conversion took 65 ms.
Trying to convert       115/182 file - "scratch/get_info.gd" with size - 8 KB
    File was changed, conversion took 158 ms.
Trying to convert       116/182 file - "scratch/make_class_from_string.gd" with size - 2 KB
    File was changed, conversion took 45 ms.
Trying to convert       117/182 file - "scratch/overload_print.gd" with size - 0 KB
    File was changed, conversion took 20 ms.
Trying to convert       118/182 file - "scratch/super_funcref.gd" with size - 0 KB
    File was not changed, checking took 18 ms.
Trying to convert       119/182 file - "scenes/main.tscn" with size - 1 KB
    File was changed, conversion took 35 ms.
Trying to convert       120/182 file - "scenes/TestGutGui.gd" with size - 1 KB
    File was changed, conversion took 35 ms.
Trying to convert       121/182 file - "scenes/TestGutGui.tscn" with size - 1 KB
    File was changed, conversion took 36 ms.
Trying to convert       122/182 file - "scenes/TestPrint.gd" with size - 1 KB
    File was changed, conversion took 39 ms.
Trying to convert       123/182 file - "scenes/TestPrint.tscn" with size - 1 KB
    File was changed, conversion took 30 ms.
Trying to convert       124/182 file - "scenes/TestShortcuts.gd" with size - 0 KB
    File was not changed, checking took 20 ms.
Trying to convert       125/182 file - "scenes/TestShortcuts.tscn" with size - 0 KB
    File was changed, conversion took 29 ms.
Trying to convert       126/182 file - "addons/gut/autofree.gd" with size - 2 KB
    File was changed, conversion took 52 ms.
Trying to convert       127/182 file - "addons/gut/comparator.gd" with size - 3 KB
    File was not changed, checking took 74 ms.
Trying to convert       128/182 file - "addons/gut/compare_result.gd" with size - 0 KB
    File was changed, conversion took 29 ms.
Trying to convert       129/182 file - "addons/gut/diff_formatter.gd" with size - 1 KB
    File was not changed, checking took 39 ms.
Trying to convert       130/182 file - "addons/gut/diff_tool.gd" with size - 3 KB
    File was changed, conversion took 78 ms.
Trying to convert       131/182 file - "addons/gut/doubler.gd" with size - 20 KB
    File was changed, conversion took 346 ms.
Trying to convert       132/182 file - "addons/gut/get_native_script.gd" with size - 0 KB
    File was not changed, checking took 16 ms.
Trying to convert       133/182 file - "addons/gut/gut.gd" with size - 61 KB
    File was changed, conversion took 958 ms.
Trying to convert       134/182 file - "addons/gut/GutScene.gd" with size - 13 KB
    File was changed, conversion took 235 ms.
Trying to convert       135/182 file - "addons/gut/GutScene.tscn" with size - 17 KB
    File was changed, conversion took 275 ms.
Trying to convert       136/182 file - "addons/gut/gut_cmdln.gd" with size - 13 KB
    File was changed, conversion took 216 ms.
Trying to convert       137/182 file - "addons/gut/gut_config.gd" with size - 4 KB
    File was changed, conversion took 92 ms.
Trying to convert       138/182 file - "addons/gut/gut_plugin.gd" with size - 0 KB
    File was changed, conversion took 25 ms.
Trying to convert       139/182 file - "addons/gut/hook_script.gd" with size - 1 KB
    File was changed, conversion took 33 ms.
Trying to convert       140/182 file - "addons/gut/input_factory.gd" with size - 4 KB
    File was changed, conversion took 83 ms.
Trying to convert       141/182 file - "addons/gut/input_sender.gd" with size - 9 KB
    File was changed, conversion took 176 ms.
Trying to convert       142/182 file - "addons/gut/junit_xml_export.gd" with size - 2 KB
    File was not changed, checking took 55 ms.
Trying to convert       143/182 file - "addons/gut/logger.gd" with size - 9 KB
    File was not changed, checking took 161 ms.
Trying to convert       144/182 file - "addons/gut/method_maker.gd" with size - 10 KB
    File was changed, conversion took 201 ms.
Trying to convert       145/182 file - "addons/gut/one_to_many.gd" with size - 1 KB
    File was not changed, checking took 30 ms.
Trying to convert       146/182 file - "addons/gut/optparse.gd" with size - 8 KB
    File was changed, conversion took 145 ms.
Trying to convert       147/182 file - "addons/gut/orphan_counter.gd" with size - 2 KB
    File was not changed, checking took 54 ms.
Trying to convert       148/182 file - "addons/gut/parameter_factory.gd" with size - 3 KB
    File was not changed, checking took 61 ms.
Trying to convert       149/182 file - "addons/gut/parameter_handler.gd" with size - 0 KB
    File was not changed, checking took 25 ms.
Trying to convert       150/182 file - "addons/gut/plugin_control.gd" with size - 10 KB
    File was changed, conversion took 173 ms.
Trying to convert       151/182 file - "addons/gut/printers.gd" with size - 4 KB
    File was changed, conversion took 87 ms.
Trying to convert       152/182 file - "addons/gut/result_exporter.gd" with size - 2 KB
    File was not changed, checking took 56 ms.
Trying to convert       153/182 file - "addons/gut/signal_watcher.gd" with size - 5 KB
    File was changed, conversion took 106 ms.
Trying to convert       154/182 file - "addons/gut/spy.gd" with size - 2 KB
    File was changed, conversion took 57 ms.
Trying to convert       155/182 file - "addons/gut/strutils.gd" with size - 5 KB
    File was changed, conversion took 111 ms.
Trying to convert       156/182 file - "addons/gut/stubber.gd" with size - 6 KB
    File was changed, conversion took 107 ms.
Trying to convert       157/182 file - "addons/gut/stub_params.gd" with size - 2 KB
    File was changed, conversion took 66 ms.
Trying to convert       158/182 file - "addons/gut/summary.gd" with size - 7 KB
    File was changed, conversion took 128 ms.
Trying to convert       159/182 file - "addons/gut/test.gd" with size - 65 KB
    File was changed, conversion took 1075 ms.
Trying to convert       160/182 file - "addons/gut/test_collector.gd" with size - 8 KB
    File was changed, conversion took 145 ms.
Trying to convert       161/182 file - "addons/gut/thing_counter.gd" with size - 0 KB
    File was not changed, checking took 23 ms.
Trying to convert       162/182 file - "addons/gut/UserFileViewer.gd" with size - 1 KB
    File was changed, conversion took 30 ms.
Trying to convert       163/182 file - "addons/gut/UserFileViewer.tscn" with size - 4 KB
    File was changed, conversion took 89 ms.
Trying to convert       164/182 file - "addons/gut/utils.gd" with size - 13 KB
    File was changed, conversion took 237 ms.
Trying to convert       165/182 file - "addons/gut/gui/BottomPanelShortcuts.gd" with size - 2 KB
    File was changed, conversion took 55 ms.
Trying to convert       166/182 file - "addons/gut/gui/BottomPanelShortcuts.tscn" with size - 5 KB
    File was changed, conversion took 101 ms.
Trying to convert       167/182 file - "addons/gut/gui/GutBottomPanel.gd" with size - 11 KB
    File was changed, conversion took 197 ms.
Trying to convert       168/182 file - "addons/gut/gui/GutBottomPanel.tscn" with size - 12 KB
    File was changed, conversion took 199 ms.
Trying to convert       169/182 file - "addons/gut/gui/GutRunner.gd" with size - 2 KB
    File was changed, conversion took 50 ms.
Trying to convert       170/182 file - "addons/gut/gui/GutRunner.tscn" with size - 0 KB
    File was not changed, checking took 16 ms.
Trying to convert       171/182 file - "addons/gut/gui/GutSceneTheme.tres" with size - 0 KB
    File was changed, conversion took 11 ms.
Trying to convert       172/182 file - "addons/gut/gui/gut_config_gui.gd" with size - 12 KB
    File was changed, conversion took 205 ms.
Trying to convert       173/182 file - "addons/gut/gui/OutputText.gd" with size - 6 KB
    File was changed, conversion took 129 ms.
Trying to convert       174/182 file - "addons/gut/gui/OutputText.tscn" with size - 5 KB
    File was changed, conversion took 91 ms.
Trying to convert       175/182 file - "addons/gut/gui/RunAtCursor.gd" with size - 3 KB
    File was changed, conversion took 78 ms.
Trying to convert       176/182 file - "addons/gut/gui/RunAtCursor.tscn" with size - 2 KB
    File was changed, conversion took 44 ms.
Trying to convert       177/182 file - "addons/gut/gui/RunResults.gd" with size - 13 KB
    File was changed, conversion took 238 ms.
Trying to convert       178/182 file - "addons/gut/gui/RunResults.tscn" with size - 5 KB
    File was changed, conversion took 106 ms.
Trying to convert       179/182 file - "addons/gut/gui/script_text_editor_controls.gd" with size - 6 KB
    File was changed, conversion took 112 ms.
Trying to convert       180/182 file - "addons/gut/gui/Settings.tscn" with size - 0 KB
    File was changed, conversion took 14 ms.
Trying to convert       181/182 file - "addons/gut/gui/ShortcutButton.gd" with size - 3 KB
    File was changed, conversion took 73 ms.
Trying to convert       182/182 file - "addons/gut/gui/ShortcutButton.tscn" with size - 1 KB
    File was changed, conversion took 41 ms.
Conversion ended - all files(182), converted files(100), not converted files(82).

bitbrain avatar Jul 30 '22 17:07 bitbrain

I accidentally removed min_rect_size but it looks it is now called custom_min_size

bitbrain avatar Jul 30 '22 17:07 bitbrain

No more errors but for some reason GUT starts and then stops again (silently without any errors) - if anybody could check out the branch with Godot 4 alpha13+ that would be great!

EDIT there are actually more errors but due to https://github.com/godotengine/godot/issues/63714 I did not see them (I was hiding notifications)

Will attempt to fix those. Also, NativeScript is now gone and all that GDNative support is rather useless. We do not even need it any longer because GDExtension is basically "part of the engine itself"

bitbrain avatar Jul 30 '22 20:07 bitbrain

Can you get this into a single PR? I'm still holding off on checking anything until the Beta release (which appears to be soon).

bitwes avatar Aug 03 '22 00:08 bitwes

@bitwes technically, this PR already contains https://github.com/bitwes/Gut/pull/379 however, the diff is significantly larger as a result. If you are happy with that, I can close off https://github.com/bitwes/Gut/pull/379 and we'll deal with a larger diff then.

bitbrain avatar Aug 03 '22 10:08 bitbrain

@bitbrain Go ahead and delete the other one. I'll work off this one. I started messing around a little yesterday with 4.0. There is a TON that has changed. A lot might need to be rewritten. I started making issues as I found them. My goal was to get the command line to run and show the help, I wasn't able to get that to work yet.

bitwes avatar Aug 03 '22 22:08 bitwes

@bitwes did you find anything suspicious already that could suggest why it does not run properly? I am scratching my head right now to figure out why Gut starts and then instantly stops again.

bitbrain avatar Aug 04 '22 21:08 bitbrain

I was able to get it to run via the command line yesterday. Been toying with it more than I should, heh. I've also made a bunch of 4.0 issues describing what I've found as I went along.

I got the basic asserts running. A bunch of things are still not working (watching signals, doubles, partial doubles, stubbing, comparing dictionaries and arrays, input mocking, the controls/dialogs all look like garbage, and don't think the in-editor is working) but it is a start.

You can check out the changes in the branch below. It's all experimental and not fit for general consumption but has helped get a list of things that will need formal changes.

https://github.com/bitwes/Gut/tree/4_0_experiments

I cloned your branch and started toying around. All tests that kinda work are in the tests_4_0/ directory, so if you try it out change your gutconfig to only point to that directory.

bitwes avatar Aug 04 '22 22:08 bitwes

This is a great start, i'm just going to merge it. Some of the outstanding things I asked for had to do with me not knowing much about 4.0.

bitwes avatar Aug 07 '22 19:08 bitwes