Named unittests

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 12:16:44 PDT 2015


On Wednesday, 1 April 2015 at 18:35:14 UTC, Idan Arye wrote:
> The problem is not with running the tests, it's with building 
> them. In heavily templated libraries(like, for example Phobos), 
> building without unittests takes seconds and building with 
> unitetests takes minutes - mainly because the tests need to to 
> many template instantiations. If we could tell the compiler to 
> only build a single, specific test the development cycle can 
> become orders of magnitude faster.

This is fixed by having smaller modules. If test for a single 
module takes more than few blinks of an eye, something is wrong 
already.


More information about the Digitalmars-d mailing list