On Mon, 16 Oct 2017 17:37:32 +0200, Sönke Ludwig wrote:
There are two possibilities. Either define DFLAGS="-unittest -O -inline"
and then run "dub test", or define a custom build type in the package
recipe to either override "unittest", or to define a new
"unittest-release" one ([json][1]/[sdlang][2]).
Mmm, I think this should be possible from the command line, without messing with the package recipe, and without low-level flags override.
BTW, regarding defining various configurations and unit testing, I have a configuration named "benchmark" for which "targetName" works fine. But in my "unittest" configuration the "targetName" seems to be ignored. Is this a bug?
"configurations":
[
{
"name": "unittest",
"targetName": "totally-ignored"
},
{
"name": "benchmark",
"targetName": "some-executable",
"targetType": "executable"
},
]