GutMain

Inherits: “addons/gut/gut_to_move.gd”

The GUT brains.

Description

This is responsible for everything. There aren’t a lot of things you should be doing with this, but there are some edge cases where you can/should interact with the instance of this that is making all the magic happen.

Properties

Variant

log_level

_log_level

Variant

add_children_to

<unknown>

Methods

Variant

get_assert_count()

Variant

get_fail_count()

Variant

get_pass_count()

Variant

get_pending_count()

Variant

get_summary()

Variant

get_test_script_count()


Property Descriptions

Variant log_level = _log_level 🔗

  • void @log_level_setter(value)

  • Variant @log_level_getter()

The log detail level. Valid values are 0 - 2. Larger values do not matter.


Variant add_children_to = <unknown> 🔗

  • void @add_children_to_setter(value)

  • Variant @add_children_to_getter()

Sets the object that GUT will add test objects to as it creates them. The default is self, but can be set to other objects so that GUT is not obscured by the objects added during tests.


Method Descriptions

Variant get_assert_count() 🔗

Get the number of assertions that were made


Variant get_pass_count() 🔗

Get the number of assertions that passed


Variant get_fail_count() 🔗

Get the number of assertions that failed


Variant get_pending_count() 🔗

Get the number of tests flagged as pending


Variant get_summary() 🔗

Returns a summary.gd object that contains all the information about the run results.


Variant get_test_script_count() 🔗

Returns the number of test scripts. Inner Test classes each count as a script.