How to test a DUB-based library during development?

Joel joelcnz at gmail.com
Wed Jan 31 04:57:14 UTC 2018


On Thursday, 11 January 2018 at 12:36:22 UTC, Guillaume Piolat 
wrote:
> On Thursday, 11 January 2018 at 12:27:27 UTC, DanielG wrote:

[snip]

>
> You may have some unittest blocks in your source files, and 
> then type:
>
>     $ dub test
>

[snip]

When I try 'dub test' I get errors like 'Source file 
'/Users/joelchristensen/jpro/dpro2/JMiscLib/source/jmisc/base.d' 
not found in any import path.'

Here's the dub.json file I'm using:

```
{
	"name": "timelog",
     "targetType": "executable",
	"description": "A Joel D program. A D Diary program.",
	"copyright": "Copyright © 2018, joelcnz - note: I don't 
understand this",
	"authors": ["Joel Ezra Christensen"],
     "DFLAGS": ["g"],
     "sourcePaths" : ["source",
                      "../JTaskLib/source",
                      "../JMiscLib/source"
                     ],
     "dependencies": {
         "dlangui": "~>0.9.56"
     }
}
```


More information about the Digitalmars-d-learn mailing list