unittests and Windows App

Rainer Schuetze r.sagitario at gmx.de
Fri Dec 20 14:26:05 PST 2013



On 19.12.2013 14:55, ref2401 wrote:
> I'm using D 2064.2 and VisualD 0.3.37
> VisualD "Redirect stdout to output window" checkbox is checked.
>
> In simple ConsoleApp unittests work properly. I can debug them and
> assertion fail results are printed to the Output window.
>
> But it seems that unittests don't work at all with any WindowsApp. It's
> impossible to debug and no assertion fail messages are printed to the
> Output windows.

I think there was a recent change that Runtime.initialize would no 
longer run the unit tests, so you have to call runModuleUnitTests() 
yourself from within WinMain.


More information about the Digitalmars-d-learn mailing list