www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How do you run a selected test with dlangvs?

reply 12345swordy <alexanderheistermann gmail.com> writes:
I am trying to run a selected test instead of all of the tests. 
Any ideas on how to do so?
Jan 03 2021
next sibling parent James Blachly <james.blachly gmail.com> writes:
On 1/3/21 6:40 PM, 12345swordy wrote:
 I am trying to run a selected test instead of all of the tests. Any 
 ideas on how to do so?
This is one of the most popular packages on code.dlang.org, although I have personally not used it. The documentation indicates that tests can be named individually (via attribuets) and run individually or as group(s) https://code.dlang.org/packages/unit-threaded This package likewise is also very popular: https://code.dlang.org/packages/silly
Jan 03 2021
prev sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Sunday, 3 January 2021 at 23:40:37 UTC, 12345swordy wrote:
 I am trying to run a selected test instead of all of the tests. 
 Any ideas on how to do so?
I am pretty satisfied with this unit test framework https://code.dlang.org/packages/d-unit. You can filter the tests and with latest version it also supports to activate/deactivate tests based on environment variables / operation system or boolean conditions (same attributes like in JUnit 5). Kind regards Andre
Jan 04 2021