/tg/ Station 13 - Modules - TypesVar Details - Proc Details

unit_test

Vars

allocatedA list of instances created by this unit test. Use allocate()
fail_reasonsLazy list of why this unit test failed.
priorityThe priority of the test, the larger it is the later it fires
reservationReference to the blank z-level containing our testing enviroment
run_loc_floor_bottom_leftThe bottom left floor turf of the testing zone
run_loc_floor_top_rightThe top right floor turf of the testing zone
succeededIf this test has passed or not
test_flagsBehavior flags for this unit test
times_to_runHow many times this unit test will run. Use the TEST_REPEAT() macro
uncreatablesList of atoms that we don't want to ever initialize in an agnostic context, like for Create and Destroy. Stored on the base datum for usability in other relevant tests that need this data.

Procs

allocateAllocates an instance of the provided type, and places it somewhere in an available loc Instances allocated through this proc will be destroyed when the test is over
build_list_of_uncreatablesBuilds (and returns) a list of atoms that we shouldn't initialize in generic testing, like Create and Destroy. It is appreciated to add the reason why the atom shouldn't be initialized if you add it to this list.
click_wrapperHelper to perform a click
get_flat_icon_for_all_directionsHelper for screenshot tests to take an image of an atom from all directions and insert it into one icon
log_for_testLogs a test message. Will use GitHub action syntax found at https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
restore_atmosResets the air of our testing room to its default

Var Details

allocated

A list of instances created by this unit test. Use allocate()

fail_reasons

Lazy list of why this unit test failed.

priority

The priority of the test, the larger it is the later it fires

reservation

Reference to the blank z-level containing our testing enviroment

run_loc_floor_bottom_left

The bottom left floor turf of the testing zone

run_loc_floor_top_right

The top right floor turf of the testing zone

succeeded

If this test has passed or not

test_flags

Behavior flags for this unit test

times_to_run

How many times this unit test will run. Use the TEST_REPEAT() macro

uncreatables

List of atoms that we don't want to ever initialize in an agnostic context, like for Create and Destroy. Stored on the base datum for usability in other relevant tests that need this data.

Proc Details

allocate

Allocates an instance of the provided type, and places it somewhere in an available loc Instances allocated through this proc will be destroyed when the test is over

build_list_of_uncreatables

Builds (and returns) a list of atoms that we shouldn't initialize in generic testing, like Create and Destroy. It is appreciated to add the reason why the atom shouldn't be initialized if you add it to this list.

click_wrapper

Helper to perform a click

get_flat_icon_for_all_directions

Helper for screenshot tests to take an image of an atom from all directions and insert it into one icon

log_for_test

Logs a test message. Will use GitHub action syntax found at https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions

restore_atmos

Resets the air of our testing room to its default