Hi Noury, You are right and reading your answer I understand I wasn't crystal clear. I have a test scenario where sometimes a race condition occurs, so I'm not expecting any error. Which is why I'd prefer something built-in Pharo: a sort of "haltIfError" or "haltOnError" built-in command.Is there anything like that in Pharo? TIA Davide On Thursday, January 4, 2024 at 01:24:59 PM GMT+1, Noury Bouraqadi <bouraq...@gmail.com> wrote: 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? TIADavide
[Pharo-users] Re: How to halt on Test errors?
Davide Varvello via Pharo-users Thu, 04 Jan 2024 06:42:34 -0800
- [Pharo-users] How to halt on Test errors? Davide Varvello via Pharo-users
- [Pharo-users] Re: How to halt on Test... Noury Bouraqadi
- [Pharo-users] Re: How to halt on ... Davide Varvello via Pharo-users
- [Pharo-users] Re: How to halt... Davide Varvello via Pharo-users
- [Pharo-users] Re: How to ... Guillermo Polito
- [Pharo-users] Re: Ho... Denis Kudriashov
- [Pharo-users] Re: How to ... Gabriel Cotelli
- [Pharo-users] Re: Ho... Guillermo Polito
- [Pharo-users] Re: Ho... Davide Varvello via Pharo-users