D-Programming-Language/dmd — pull request #1131 by jpf91 (2012-09-21 11:29:30+00:00)
Title: New unittest

This allows to add additional data to unittests and it allows the runtime to run unittests seperately.

Currently supported information:
```
ushort version; //UnitTest info version, currently = 1
string filename;
uint line;
void function() testFunc;
```

Prepared:
```
string name; //Needs support in the lexer/parser.
```
The name is passed to the runtime, but currently it's always an empty string.

The old per module unittest function is still supported, but deprecated.

The second commit recognizes if a unittest is marked as ```@disable``` and passes this information to the runtime.

This druntime pull request must be pulled first:
https://github.com/D-Programming-Language/druntime/pull/308

Here's a small example of what can be done with these changes:
Custom test runner: http://dpaste.dzfl.pl/046ed6fb
Sample unittests: http://dpaste.dzfl.pl/517b1088
Output: http://dpaste.dzfl.pl/2780939b

requires: druntime git://github.com/jpf91/druntime.git newUnittest