Files
Bubberstation/code/modules/unit_tests/screenshots
Halcyon 74e4fb8797 Fixes of a bunch of sprite issues with Synth lizards (#14741)
* ae

* e

* bluh test

* Revert "bluh test"

This reverts commit 763ec10b412e59bb109e2868dd12ecbb9a8d6533.

* Revert "e"

This reverts commit 9ef4a2ab8915a75e0779cfb2c70b603eafa0afa7.

* scrrensh

* screenshots
2022-07-28 22:10:24 -04:00
..

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.