I have code that I’d like to write tests for, but the `check(…)` lines are causing the tests to fail. I see methods like `AddExpectedError` but these seem to be focused on error logs. Is there a way I can handle `check` and/or `ensure` etc. when writing tests?
Hey there,
Not to my knowledge. If you have the ability to edit the underlying code you could wrap it under a UE_BUILD_TEST define w.r.t. check. Ensure, you should be able to use the AddExpectedError(TEXT(“EnsureMessage”)…).
[mention removed] may have some additional ideas?
Kind regards,
Julian