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

Juan Vuletich juan at cuis.st
Wed Apr 3 07:42:38 PDT 2024


On 4/3/2024 11:31 AM, Hernán Wilkinson via Cuis-dev wrote:
> Hi,
>  attached is a proposed enhancement to SUnit.
>  Now that SUnit is counting the number of executed assertions, I 
> propose that if no assertion is run then the test should fail because 
> it means that the test is not written correctly because a test without 
> assertions is not a test.
>  This check is done in other implementations of xUnit and helps 
> newbies to write better tests (at least to add an assertion :-) )
>  Do you think it makes sense to add it to our SUnit implementation?
>
> Cheers!
> Hernan.
>
> -- 
> *Hernán Wilkinson
> Agile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina

I like the idea!

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240403/1ad416ee/attachment.htm>


More information about the Cuis-dev mailing list