Skip to content

Commit

Permalink
GD-150: Create test on a fresh GdUnit4 install results in wrong indent (
Browse files Browse the repository at this point in the history
#151)

# Why
The `Create Test` was broken because the GdUnit settings contained an
invalid initial execution definition template

# What
Use the correct template function to initialize the template settings
correctly.
  • Loading branch information
MikeSchulze authored Mar 21, 2023
1 parent 42c4d3c commit bf1eda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/gdUnit4/src/core/GdUnitSettings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static func setup():
create_property_if_need(REPORT_ASSERT_STRICT_NUMBER_TYPE_COMPARE, true, "Enabled/disabled number values will be compared strictly by type. (real vs int)")
create_property_if_need(INSPECTOR_NODE_COLLAPSE, true, "Enables/Disables that the testsuite node is closed after a successful test run.")
create_property_if_need(INSPECTOR_TOOLBAR_BUTTON_RUN_OVERALL, false, "Shows/Hides the 'Run overall Tests' button in the inspector toolbar.")
create_property_if_need(TEMPLATE_TS_GD, GdUnitTestSuiteDefaultTemplate.DEFAULT_TEMP_TS_GD, "Defines the test suite template")
create_property_if_need(TEMPLATE_TS_GD, GdUnitTestSuiteTemplate.default_GD_template(), "Defines the test suite template")


static func create_property_if_need(name :String, default :Variant, help :="", value_set := PackedStringArray()) -> void:
Expand Down

0 comments on commit bf1eda9

Please sign in to comment.