Add image render tests

Add tests that will match rendered words/paragraphs against reference
images.

Use env var `GENERATE_IMAGES` to write the initial reference images to
the repository.
This commit is contained in:
Dov Reshef 2023-09-24 00:13:31 +03:00
parent e2adc1e8da
commit 8db03fe3cf
16 changed files with 342 additions and 0 deletions

View file

@ -53,6 +53,7 @@ harness = false
members = ["examples/*"]
[dev-dependencies]
tiny-skia = "0.11"
criterion = { version = "0.5.1", default-features = false, features = [
"cargo_bench_support",
] }