Search code examples
unit-testingdelphiexceptiondelphi-11-alexandria

Is there a way to turn off Exception Notification in Delphi while unit testing, on a particular project


I am using Delphi 11 with the DUnitx unit testing. I know that I can turn off "Language Exceptions" in Tools/Options. But this turns it off for all projects.

Is there a way to turn them off for "unit testing", or "per project".


Solution

  • If you use DUnitx for testing, then I would recommend using TestInsight. This is a very good way to implement the unit testing into the Delphi IDE.

    The Testinsight plugin compiles the test program and runs it without the debugger.

    Download TestInsight

    Watch Video

    Or simply run your test program without the debugger: Ctrl+Shift+F9