[Issue 4747] Make each unittest block a separate function that runs independently of the others

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 25 03:50:52 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=4747



--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-09-25 03:51:40 PDT ---
It has to do with naming unittest blacks, which is related both to stack traces
and to calling unittest blocks independently.

Recently, it _was_ fixed so that the functions generated for unittest blocks
are named after the line number (and possibly file? - I don't know the exact
naming scheme), which reduces the problem with regards to stack traces, but if
you wanted to be able to call specific unittest blocks (say from a unit testing
tool), then having actual names for each unittest block makes that work much
better.

The main thing though is to fix the issue where it's all or nothing for running
a module's unit tests. When I created this request, I was under the incorrect
understanding that there was one function for all of a module's unittest
blocks, which isn't true, but it _is_ true that they can't be run independently
at present, and if I understand correctly, some dmd changes are required to fix
that.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list