[Cuis-dev] Enhancement proposal: Fail test when no assertion ran

Andres Valloud ten at smallinteger.com
Wed Apr 3 10:22:43 PDT 2024


No, you can write code in a test method with the expectation that it 
will not raise unhandled exceptions, and you do not need assertions for 
that.  Specifically, you do not need to write the silly

	shouldnt: [...] raise: UnhandledException

because that's what SUnit is there for.  You do not know a priori what 
the code writer is doing, so the tool should not guess.

On 4/3/24 7:42 AM, Juan Vuletich via Cuis-dev wrote:
> a test without assertions is not a test.


More information about the Cuis-dev mailing list