KStocky / ShaderTestFramework

An automation testing framework for testing shader code
MIT License
20 stars 1 forks source link

Fast Test Mode for passing tests #83

Open KStocky opened 1 month ago

KStocky commented 1 month ago

Is your feature request related to a problem? Please describe.

Right now there are some things that make tests really slow to run

None of these things are needed if the test succeeds, so why pay for them?

Describe the solution you'd like

I think there should be an option, which is the default that does the following:

If a test does fail, then we should run it again with all of the above options reenabled. It will mean that failing tests will take slightly longer but it will mean that passing tests will be significantly faster.

Additional context The SectionHierarchy - ByteWriter tests go from taking 50 seconds to 4 seconds when strings are compiled out. That is a huge saving. It also means that if this test were to fail with these proposed changes, it will take 54 seconds to run if it fails rather than 50 which ain't much. But will save 46 seconds on every passing run

KStocky commented 1 month ago

60 is related

KStocky commented 1 month ago

76 is related