unit-threaded v0.6.3 - now even easier to use / opt-in
Sebastiaan Koppe via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Wed Mar 2 04:52:34 PST 2016
On Monday, 29 February 2016 at 09:37:51 UTC, Atila Neves wrote:
> "configurations": [
> ...,
> {
> "name": "unittest",
> "preBuildCommands": ["dub run unit-threaded -c
> gen_ut_main -- -f bin/ut.d"],
> "mainSourceFile": "bin/ut.d",
> "excludedSourceFiles": "src/main.d",
> "dependencies": {
> "unit-threaded": "~>0.6.3"
> }
> }
Worked nicely, but I had to change some configs.
{
"name": "unittest",
"preBuildCommands": ["dub run unit-threaded -c
gen_ut_main -- -f bin/ut.d"],
"importPaths": ["bin"],
"mainSourceFile": "bin/ut.d",
"excludedSourceFiles": ["app.d"],
"targetType":"executable",
"dependencies": {
"unit-threaded": "~>0.6.3"
}
}
probably due to dub's default of the code being in `source/`
instead of root folder. Do not know why I had to add
`targetType:executable`, perhapse because my project is a library
?
More information about the Digitalmars-d-announce
mailing list