[phobos] Time taken for running unit tests

Andrei Alexandrescu andrei at erdani.com
Mon Sep 26 17:46:31 PDT 2011


On 9/26/11 2:37 AM, Don Clugston wrote:
> I think we need to have a strategy for managing the amount of time
> required for running the unittests. Currently, on Windows, the time
> for all compiler tests + phobos tests is one hour. (The druntime tests
> are only 30 seconds).
> By contrast, running all compiler tests + phobos tests on D1, takes
> about four minutes.
[snip]

Breaking the tests into two categories would work, but would entail a 
lot of work and further effort (making a decision for each new unittest).

A better solution (that's been mentioned already) would be to do for 
Windows what we already do for Unix - each module's unittest defines a 
separate binary, linked with the regular (non-unittest) library. Then 
whenever you work on a module you can unittest only that one.


Andrei


More information about the phobos mailing list