unit_test
Vars | |
abstract_type | Do not instantiate if type matches this |
---|---|
priority | The priority of the test, the larger it is the later it fires |
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 |
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. |
Procs | |
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 |
Var Details
abstract_type
Do not instantiate if type matches this
priority
The priority of the test, the larger it is the later it fires
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
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
- clicker: The mob that will be clicking
- clicked_on: The atom that will be clicked
- passed_params: A list of parameters to pass to the 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