These improvements would be very nice. The unit test framework, as it is, is rather underpowered.

Exceptions could also use more documentation on the D website. I heard there was some exception chaining mechanism, but I can't even seem to find any info on the Error class.

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

Reply via email to