How can I specify a location to write the code coverage files generated with '-cov'?
Daniel Murphy
yebblies at nospamgmail.com
Fri Apr 4 01:52:07 PDT 2014
On Friday, 4 April 2014 at 04:10:51 UTC, Saurabh Das wrote:
> Hello,
>
> Say I compile a program with:
>
> dmd -unittest -debug -cov test.d
>
> Then, when I run ./test, a file 'test.lst' is generated in the
> current working directory. Is there a way in which I can
> instruct the file to be created in a separate './cov_log/'
> directory?
>
> Thanks,
> Saurabh
You actually can do this, through the hidden rt.cover api:
extern (C) void dmd_coverSourcePath( string pathname );
extern (C) void dmd_coverDestPath( string pathname );
Add these prototypes to your code and use them to override the
default coverage paths.
More information about the Digitalmars-d-learn
mailing list