Skip to content

Commit

Permalink
Add note to README
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Feb 12, 2024
1 parent 8a4f234 commit c7fa879
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ that are part of the test suites. SVG files which don't have a corresponding ref
will be skipped. To regenerate this file, you can simply run `./scripts/gen-tests.py` and
it should work out of the box.

Note: The aim of the test cases it not necessarily to check whether the SVGs are rendered
correctly, but rather whether our SVGs output match the one from resvg. In most cases, if
it matches resvg it is also correct, because resvg is pretty good at rendering SVGs in general.
However, a couple of features are not implemented (e.g. `enableBackground` in filters), thus
they are not rendered correctly, but we consider the test case as passing anyway, because
it matches the output of resvg.

To run the tests, you can then just invoke `cargo test --release` (make sure to run it
in release mode, otherwise it will be very slow).

Expand Down

0 comments on commit c7fa879

Please sign in to comment.