Unittest Walker

Lutger lutger.blijdestijn at gmail.com
Fri Dec 8 04:57:55 PST 2006


Thomas Kuehne wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> If you are interested in executing all your unittests and don't
> want to stop after the first failed one you might be interested
> in the Unittest Walker.
> 
> sample output:
> #
> # testing some_module.__unittest1 ... SUCCESS
> # testing some_module.__unittest2 ... FAILED: (Exception) just a sample
> # testing some_module.__unittest3 ... SUCCESS
> # Summary: 2/1/3 (succeeded/failed/total)
> #
> 
> limitation:
> works only on Linux
> 
> how to use:
> 1) download http://svn.dsource.org/projects/flectioned/downloads/flectioned.zip
> 2) gcc -c elf.c
> 3) dmd -unittest flectioned.d unittest_walker.d elf.o <your sources> -oftest
> 4) ./test
> 
> Thomas

Good idea, I'll try it whenever I get around to install linux. What 
about something like this:

unittest("testing some stuff")
{ ... }

or perhaps this is better:

/// testing some stuff
unittest
{...}

testing some_module: "testing some stuff" ... SUCCESS


Is this possible / difficult?




More information about the Digitalmars-d-announce mailing list