:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from GUT Plugin sources. .. Generator: documentation/godot_make_rst.py. .. _class_GutMain: GutMain ======= **Inherits:** addons/gut/gut_to_move.gd The GUT brains. .. rst-class:: classref-introduction-group Description ----------- Most of this class is for internal use only. Features that can be used have descriptions and can be accessed through the :ref:`GutTest.gut` variable in your test scripts (extends :ref:`GutTest`). The wiki page for this class contains only the usable features. GUT Wiki: `https://gut.readthedocs.io `__ .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +--------------------------------------------------------------------------------+--------------------------------------------------------------+----------------+ | `Variant `_ | :ref:`log_level` | ``_log_level`` | +--------------------------------------------------------------------------------+--------------------------------------------------------------+----------------+ | `Variant `_ | :ref:`wait_log_delay` | ``0.5`` | +--------------------------------------------------------------------------------+--------------------------------------------------------------+----------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | `Variant `_ | :ref:`get_assert_count`\ (\ ) | +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | `Variant `_ | :ref:`get_fail_count`\ (\ ) | +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | `Variant `_ | :ref:`get_pass_count`\ (\ ) | +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | `Variant `_ | :ref:`get_pending_count`\ (\ ) | +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | `Variant `_ | :ref:`get_summary`\ (\ ) | +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | `Variant `_ | :ref:`get_test_script_count`\ (\ ) | +--------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Signals ------- .. _class_GutMain_signal_start_script: .. rst-class:: classref-signal **start_script**\ (\ test_script_obj\ ) :ref:`🔗` Emitted before every test script instance is created. Emitted before :ref:`GutTest.before_all` hook on test is run. test_script_obj is an instance of addons/gut/collected_script.gd. .. _class_GutMain_signal_end_script: .. rst-class:: classref-signal **end_script**\ (\ ) :ref:`🔗` Emitted after every test script is run. Emitted after :ref:`GutTest.after_all` hook on test is run. .. _class_GutMain_signal_start_test: .. rst-class:: classref-signal **start_test**\ (\ test_name\ ) :ref:`🔗` Emitted before every test method is run. Emitted after :ref:`GutTest.before_each` hook on test is run. test_name is the string name of the current test about to be started. .. _class_GutMain_signal_end_test: .. rst-class:: classref-signal **end_test**\ (\ ) :ref:`🔗` Emitted after every test method is run. Emitted after :ref:`GutTest.after_each` hook on test is run. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_GutMain_property_log_level: .. rst-class:: classref-property `Variant `_ **log_level** = ``_log_level`` :ref:`🔗` .. rst-class:: classref-property-setget - |void| **@log_level_setter**\ (\ value\ ) - `Variant `_ **@log_level_getter**\ (\ ) The log detail level. Valid values are 0 - 2. Larger values do not matter. .. rst-class:: classref-item-separator ---- .. _class_GutMain_property_wait_log_delay: .. rst-class:: classref-property `Variant `_ **wait_log_delay** = ``0.5`` :ref:`🔗` The amount of time that must elapse before an "Awaiting" message is printed. .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_GutMain_method_get_assert_count: .. rst-class:: classref-method `Variant `_ **get_assert_count**\ (\ ) :ref:`🔗` Get the number of assertions that were made .. rst-class:: classref-item-separator ---- .. _class_GutMain_method_get_pass_count: .. rst-class:: classref-method `Variant `_ **get_pass_count**\ (\ ) :ref:`🔗` Get the number of assertions that passed .. rst-class:: classref-item-separator ---- .. _class_GutMain_method_get_fail_count: .. rst-class:: classref-method `Variant `_ **get_fail_count**\ (\ ) :ref:`🔗` Get the number of assertions that failed .. rst-class:: classref-item-separator ---- .. _class_GutMain_method_get_pending_count: .. rst-class:: classref-method `Variant `_ **get_pending_count**\ (\ ) :ref:`🔗` Get the number of tests flagged as pending .. rst-class:: classref-item-separator ---- .. _class_GutMain_method_get_summary: .. rst-class:: classref-method `Variant `_ **get_summary**\ (\ ) :ref:`🔗` Returns a summary.gd object that contains all the information about the run results. .. rst-class:: classref-item-separator ---- .. _class_GutMain_method_get_test_script_count: .. rst-class:: classref-method `Variant `_ **get_test_script_count**\ (\ ) :ref:`🔗` Returns the number of test scripts. Inner Test classes each count as a script. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`