mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-29 10:31:34 +00:00
# Conflicts: # .github/CODEOWNERS # code/__DEFINES/footsteps.dm # code/game/objects/items/spear.dm # code/game/objects/structures/crates_lockers/closets/secure/security.dm # code/modules/language/language_holder.dm # code/modules/mob/living/carbon/human/species_types/abductors.dm # code/modules/mob/living/carbon/human/species_types/ethereal.dm # code/modules/mob/living/carbon/human/species_types/felinid.dm # code/modules/mob/living/carbon/human/species_types/lizardpeople.dm # code/modules/mob/living/carbon/human/species_types/plasmamen.dm # code/modules/mob/living/simple_animal/hostile/mining_mobs/goliath.dm # code/modules/projectiles/ammunition/energy/laser.dm # modular_skyrat/modules/altborgs/code/robot_model.dm # modular_skyrat/modules/customization/modules/mob/living/carbon/human/species/hemophage.dm # modular_skyrat/modules/examinemore/code/examine_more.dm # modular_skyrat/modules/opposing_force/code/equipment/loadouts.dm
This folder contains the results for screenshot tests. Screenshot tests make sure an icon looks the same as it did before a change to prevent regressions.
You can create one by simply using the test_screenshot proc.
This example test screenshots a red image and keeps it.
/// This is an example for screenshot tests, and a meta-test to make sure they work in the success case.
/// It creates a picture that is red on the left side, green on the other.
/datum/unit_test/screenshot_basic
/datum/unit_test/screenshot_basic/Run()
var/icon/red = icon('icons/blanks/32x32.dmi', "nothing")
red.Blend(COLOR_RED, ICON_OVERLAY)
test_screenshot("red", red)
Unfortunately, screenshot tests are sanest to test through a pull request directly, due to limitations with both DM and GitHub.