On Sunday, August 05, 2012 01:01:03 Tobias Pankrath wrote: > you can do it as a library solution just fine.
You shouldn't have to use a library to get named unit tests, since unit testing is built into D, and the lack of name unit tests is a real problem for stack traces and the like. It was suggested at one point that at minimum, unittest block functions have their line number in their name so that you can figure out which unittest block you're dealing with even if you can't name it yourself ( http://d.puremagic.com/issues/show_bug.cgi?id=5587 ), and not even that's been done yet. Though now that I read through that enhancement request again, it looks like theres an old pull request with the necessary changes in it ( https://github.com/D-Programming-Language/dmd/pull/264 ), but it's one of those that's been sitting around for a long time, probably because it's an enhancement rather than a bug fix, and Walter just hasn't gotten around to it. - Jonathan M Davis