naga
naga copied to clipboard
UI tests
Right now, all UI tests for the frontends are done in Rust as tests, this approach has some limitations:
- Changing the tests requires recompiling again the test crate
- Quite a bit of boilerplate per test
- Expected changes must be changed manually
This makes it quite a burden to add and maintain these tests.
My proposal is to add a test harness as we have for normal translation tests, but instead of expecting them to succeed and transpile, we expect them to fail and store the errors in a file (like ron or even as debug text as we do for .txt
files).