Is there a way to disable 'dub test' for applications?

Jonathan M Davis via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 17 22:30:21 PDT 2016


On Monday, April 18, 2016 04:25:25 Jon D via Digitalmars-d-learn wrote:
> I have an dub config file specifying a targetType of
> 'executable'. There is only one file, the file containing main(),
> and no unit tests.
>
> When I run 'dub test', dub builds and runs the executable. This
> is not really desirable. Is there a way to set up the dub
> configuration file to disable running the test?
>
> Note: What I'd really like to do is run a custom shell command
> when 'dub test' is done, I haven't seen anything suggesting
> that's an option. However, disabling would still be useful.

What's the point of even running dub test if you have no unit tests? Just do
dub build, and then use the resulting executable, or if you want to build
and run in one command, then use dub run.

- Jonathan M Davis



More information about the Digitalmars-d-learn mailing list