Thread overview
Execute certain Tests?
Nov 02, 2019
Martin Brezel
Nov 02, 2019
Paul Backus
Nov 02, 2019
Max Haughton
November 02, 2019
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
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
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