How do I run multiple unittests with rdmd?

Anthony anthoq88 at gmail.com
Fri Mar 5 03:45:53 UTC 2021


On Friday, 5 March 2021 at 02:08:37 UTC, H. S. Teoh wrote:
> In the latter case, you could just use `rdmd -unittest -i -run 
> main.d` (replace `main.d` with whatever source file contains 
> main()) to automatically compile all modules including their 
> unittests *and* run 'em all in one shot.

I didn't know that. Good to know. Thanks


> Only in the former case would you need to use your `find` 
> pipeline above. :-)

I should have mentioned, this is for a library that is used by 
multiple applications.
So I guess the find pipeline is the way to go then.


More information about the Digitalmars-d-learn mailing list