KStocky / ShaderTestFramework

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

Additional Line Info for Catch2 #31

Open KStocky opened 5 months ago

KStocky commented 5 months ago

Is your feature request related to a problem? Please describe. Currently, if a failed assert is viewed using C++ TestMate for catch2 tests, it will bring the user to the line of the C++ assert. It would be great if we could make it bring users to the HLSL assert

Describe the solution you'd like We could provide a custom REQUIRE macro that takes the line and file info from the results of the test run.

Describe alternatives you've considered Another way is to try and contribute to Catch2 and provide a new REQUIRE macro from them.

Additional context The Catch2 discord implied that this might be accepted. But it would be good to provide it for STF first before pushing it back.