Thread overview | |||||
---|---|---|---|---|---|
|
November 02, 2019 Execute certain Tests? | ||||
---|---|---|---|---|
| ||||
Is there a trick to execute only the test, defined in one file? Or the Tests of a certain Module? Or in general: How to avoid to execute all the tests, when running "dub test"? It doesn't has to be dub, though. |
November 02, 2019 Re: Execute certain Tests? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Brezel | On Saturday, 2 November 2019 at 17:27:14 UTC, Martin Brezel wrote:
> Is there a trick to execute only the test, defined in one file?
> Or the Tests of a certain Module?
>
> Or in general: How to avoid to execute all the tests, when running "dub test"?
> It doesn't has to be dub, though.
dmd -unittest -run -main module.d
|
November 02, 2019 Re: Execute certain Tests? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Brezel | On Saturday, 2 November 2019 at 17:27:14 UTC, Martin Brezel wrote:
> Is there a trick to execute only the test, defined in one file?
> Or the Tests of a certain Module?
>
> Or in general: How to avoid to execute all the tests, when running "dub test"?
> It doesn't has to be dub, though.
Not by default, if you know the language well then you can use UDAs to write a fancy test runner in ten minutes, if not then use Attila's unit-threaded (or similar)
Max
|
Copyright © 1999-2021 by the D Language Foundation