pluginval icon indicating copy to clipboard operation
pluginval copied to clipboard

Feature request: break on fail.

Open jamiebullock opened this issue 5 years ago • 2 comments

It would be super-helpful if pluginval had the option to break inline when tests fail so that the source of the failure can be traced. Something like equivalent of the "-Wfatal-errors" compiler flag. I know this can be achieved currently by placing assertions in the relevant places, but this is a bit of an awkward workflow.

jamiebullock avatar Mar 19 '19 11:03 jamiebullock

I think you can achieve this by compiling from source and enabling the UnitTestRunner::setAssertOnFailure option.

If you want the assertions to kill the app you can do this by defining JUCE_LOG_CURRENT_ASSERTION to terminate?

drowaudio avatar Mar 19 '19 11:03 drowaudio

@drowaudio Thanks. I was aware I could edit the source as described. My suggestion was to include this as an option in the pluginval UI to avoid the need for recompiles etc.

But... setAssertOnFailure isn't actually helping in my case. I'm trying to track down the source of of Illegal allocations / deletions but when at the point where the assertion terminates the call stack doesn't go through my code. I'm guessing tracing the source of illegal allocations in this way isn't possible?

jamiebullock avatar Mar 30 '19 13:03 jamiebullock