www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - unitest problem

reply "Lloyd Dupont" <ld galador.net> writes:
I'm using VisualD with DMD 2.053 on Windows 7 x64
I am building a static library and an exe, both in D, both with unitest 
turned on.
the executable link with the library and use a module in the library which 
contains unitests
yet, when Irun it, only the unit test in the exe are running, no unittest in 
the library are!
is that a known bug? or just me? or something else? 
Jun 15 2011
parent Robert Clipsham <robert octarineparrot.com> writes:
On 16/06/2011 06:56, Lloyd Dupont wrote:
 I'm using VisualD with DMD 2.053 on Windows 7 x64
 I am building a static library and an exe, both in D, both with unitest
 turned on.
 the executable link with the library and use a module in the library
 which contains unitests
 yet, when Irun it, only the unit test in the exe are running, no
 unittest in the library are!
 is that a known bug? or just me? or something else?

I believe you have to reference something from each module for the unittests to be run. I don't know if this changed or not though, perhaps someone else could say. -- Robert http://octarineparrot.com/
Jun 16 2011