Coverage

Sebastiaan Koppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 16 10:58:29 PST 2016


On Tuesday, 16 February 2016 at 12:35:38 UTC, Leandro Motta 
Barros wrote:
> You probably already though of it, but: can't you create a 
> unittest that calls your code as many times as desired, passing 
> different input each time?

That is a viable option yes. I will probably end up doing it like 
that.

I don't like it though. Since the input is pretty big, it would 
need to be kept in an external file. And I don't like my 
unittests reading files. Plus they aren't really unittests 
either. Oh well. Moving on.


More information about the Digitalmars-d-learn mailing list