How to run unit tests with DSSS and GDC?

I am very new to D and still struggling with trying to tune my toolchain.

I am running Ubuntu Karmic and would like to use DSSS with GDC and Tango or TangoBos.

So far, I have installed GDC from the repositories of Ubuntu, DSSS, Tango and TangoBos from these repositories , and I can compile with dsss + gdc + tangobos.

According to the DSSS documentation, it should be possible to perform unit tests using

$ dsss build --test

but on my system, the -test argument is ignored. I have the latest version of dss (0.78) and its on-line help does not contain anything about unit tests.

Running ldc --unittest works fine (although I don’t know exactly which libray it is typing).

Is there a way to run my unit tests using the same compiler and library than for compilation?

If so, is there a way to automate testing or will I have to run it on a module?

+5
source share
2 answers

As far as I can tell, once around Karmic, installing Ubuntu gdc started by ignoring arguments like "--foo".

Note:

$ gdc --not-a-real-option
gdc: no input files

against.

$ gdc -not-a-real-option
gdc: unrecognized option '-not-a-real-option'
gdc: no input files

So, Lucid dsss version 0.76, gdc (Ubuntu 1: 1.046-4.3.4-3ubuntu1) 4.3.4,

dsss build -test 

or

dsss build -unittest

should compile with unit tests

+2
source

I would use "dsss build -unittest". I have not tried, but I see that it is used with a little search.

+1
source

All Articles