test_ggez

Crates.iotest_ggez
lib.rstest_ggez
version0.1.1
sourcesrc
created_at2021-07-24 21:31:00.195991
updated_at2021-07-24 21:55:13.077884
descriptionScreenshot testing for GGEZ Rust games
homepage
repositoryhttps://github.com/naomijub/rust-game-tutorial/tree/main/test_ggez
max_upload_size
id426913
size19,973
Julia Naomi (naomijub)

documentation

README

Test_ggez

A testing framework for GGEZ Games inpired by xray

See examples folder in game to understand usage.

  • Tests are run in the example folder because main threat is necessary for context.
  • First time you run a new test, a PNG will be added with the name expected.png to test_resources/<test name>/ with the captured screenshot.
  • If the expected screenshot is equal to the current screenshot, the test is a success.
  • If the expected screenshot is NOT equal to the current screenshot, two new files will be added to test_resources/<test name>/:
    1. actual.png with the current screenshot.
    2. diff.png with the difference between actual and expected.
Commit count: 0

cargo fmt