www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Execute certain Tests?

reply Martin Brezel <martin.brzenska googlemail.com> writes:
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.
Nov 02 2019
next sibling parent Paul Backus <snarwin gmail.com> writes:
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
Nov 02 2019
prev sibling parent Max Haughton <maxhaton gmail.com> writes:
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
Nov 02 2019