naga icon indicating copy to clipboard operation
naga copied to clipboard

UI tests

Open JCapucho opened this issue 2 years ago • 0 comments

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).

JCapucho avatar Jun 12 '22 17:06 JCapucho