Thread overview
How do you run a selected test with dlangvs?
Jan 03, 2021
12345swordy
Jan 04, 2021
James Blachly
Jan 04, 2021
Andre Pany
January 03, 2021
I am trying to run a selected test instead of all of the tests. Any ideas on how to do so?
January 03, 2021
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
January 04, 2021
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