Just-run-the-unittests

Sergei Nosov sergei.nosov at gmail.com
Sun Mar 16 00:59:31 PDT 2014


Hi!

Suppose I have a small .d script that has a main. Is there any 
simple way to just run the unit tests without running main at all?

I thought -main switch was intended for this, but apparently it 
works only if there's no main defined at all, otherwise, it 
issues a double main definition error.

I could place main into a separate module but its really awkward 
to create 2 files for a small script.


More information about the Digitalmars-d-learn mailing list