unit test - only shows first fail

monkyyy crazymonkyyy at gmail.com
Sun Nov 30 13:58:10 UTC 2025


On Sunday, 30 November 2025 at 11:42:12 UTC, Brother Bill wrote:
> I notice that dub test will stop at the first unit test failure.
> Is this a feature or a bug?
>
> Most Unit Test engines will run all the unit tests then give a 
> report such as:
> 10 files checked.  4 failed, 6 passed, with a list of files for 
> each.
>
> In the old days, compilers would generate 300 errors, most of 
> which were useless.
> Then Lightspeed C came out and stopped at the first error.
> You were supposed to fix that one, then recompile to find any 
> others.
> This made Lightspeed C much faster to compile as it didn't 
> waste time after finding the first error.
>
> Should D developers fix one unit test at a time in a similar 
> manner?

intended, theres ways to access the unit test list and at least 
one extension to it

It doesnt exist but id prefer something that does 10 tests in  
and stops after 5 failed tests or something


More information about the Digitalmars-d-learn mailing list