GutMain

Inherits: addons/gut/gut_to_move.gd

The GUT brains.

Description

Most of this class is for internal use only. Features that can be used are have descriptions and can be accessed through the GutTest.gut variable in your test scripts (extends GutTest). The wiki page for this class contains only the usable features.

GUT Wiki: https://gut.readthedocs.io

Properties

Variant

log_level

_log_level

Variant

wait_log_delay

0.5

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 wait_log_delay = 0.5 🔗

The amount of time that must elapse before an “Awaiting” message is printed.


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.