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 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
|
||
|
Methods
Signals
start_script(test_script_obj) 🔗
Emitted before every test script instance is created. Emitted before GutTest.before_all hook on test is run. test_script_obj is an instance of addons/gut/collected_script.gd.
end_script() 🔗
Emitted after every test script is run. Emitted after GutTest.after_all hook on test is run.
start_test(test_name) 🔗
Emitted before every test method is run. Emitted after GutTest.before_each hook on test is run. test_name is the string name of the current test about to be started.
end_test() 🔗
Emitted after every test method is run. Emitted after GutTest.after_each hook on test is run.
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
Get the number of assertions that were made
Get the number of assertions that passed
Get the number of assertions that failed
Get the number of tests flagged as pending
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.