We can always resort to hacks! module namedUnittest;
import std.stdio;
import std.string;
void main()
{
}
unittest // Foo
{
scope(failure)
{
writefln("Unittest '%s' Failed: ",
split(split(import(.stringof[7..$] ~ ".d"),
"\r\n")[__LINE__-5..__LINE__-4][0])[2]);
}
assert(0 == 1, "0 != 1");
}
..what..? Why are you looking at me like that? :p
