can a unittest read main()'s args?

mark mark at qtrac.eu
Sun Mar 22 07:57:37 UTC 2020


I have a module with a unittest { ... } block. However, when I 
run dub test sometimes I want to output some extra data when the 
test runs. At the moment I control this by using an environment 
variable, but I wondered if it was possible to pass a command 
line argument 'dub test myarg' and if so how to access it?


More information about the Digitalmars-d-learn mailing list