Parallel execution of unittests

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu May 1 11:43:41 PDT 2014


On 2014-05-01 19:12, Steven Schveighoffer wrote:

> But not a great way to debug it.
>
> If your test failure depends on ordering, then the next run will be
> random too.
>
> Proposal runtime parameter for pre-main consumption:
>
> ./myprog --rndunit[=seed]
>
> To run unit tests randomly. Prints out as first order of business the
> seed value before starting. That way, you can repeat the exact same
> ordering for debugging.

That's exactly what RSpec does. I think it works great.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list