-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve test maintainability #63
Comments
Trying to collect some pros and cons for current process (inline I'll try to keep this up-to-date. Pro:
Mixed:
Contra:
|
We should check the output of FYI, these are the lints I currently disable in my application. A lot if this is probably caused by stricter than normal lint rules.
|
This is pretty normal if there are a lot of unit tests. The public API is pretty minimal, so these tests wouldn't work as integration tests in the tests folder. I am looking into consolidating some of the unit tests to avoid some repetition.
Most required changes to the tests have been fairly minor from my experience. Please open an issue if something requires more work to change than feels reasonable.
I've started separating out the large WGSL inputs and Rust outputs into separate files. This should make the process easier and give a nicer experience with formatting and syntax highlighting.
You can write out the current output to a file in tests temporarily using |
The current tests are difficult to edit when output needs to change. One approach is to place test input and output data in separate files for easier editing and syntax highlighting. The generated code can also be tested to see if it actually compiles.
The text was updated successfully, but these errors were encountered: