Hi Davide,

Why not use one of the following:

self should: ["message that might signal an error"] raise: Error "Replace Error with the exception you want to catch"
self shouldnt:  ["message that might signal an error"] raise: Error "Replace Error with the exception you want to catch"

On Jan 3 2024, at 4:55 pm, Davide Varvello via Pharo-users <pharo-users@lists.pharo.org> wrote:
Hi Guys,

Sometimes I'd like to stop my test suite when an error occurs.

My raw approach is to put a self halt in the TestResult>>addError: and look at the debugger, but I'm wondering if there is a more suitable way.

Can you help me, please?

TIA
Davide