digitalmars.D.learn - How can I specify a location to write the code coverage files
- Saurabh Das (8/8) Apr 03 2014 Hello,
- Saurabh Das (5/14) Apr 03 2014 After reading some of the bug reports on BugZilla, I gather that
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (4/6) Apr 03 2014 So, that's what the makefile generates. ;) You can have an additional
- Daniel Murphy (6/15) Apr 04 2014 You actually can do this, through the hidden rt.cover api:
- Saurabh Das (3/22) Apr 04 2014 Saurabh
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
Apr 03 2014
After reading some of the bug reports on BugZilla, I gather that this isn't possible yet :( Thanks, Saurabh 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
Apr 03 2014
On 04/03/2014 09:10 PM, Saurabh Das wrote:Say I compile a program with: dmd -unittest -debug -cov test.dSo, that's what the makefile generates. ;) You can have an additional line that moves the coverage file away. Ali
Apr 03 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, SaurabhYou 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.
Apr 04 2014
On Friday, 4 April 2014 at 08:52:09 UTC, Daniel Murphy wrote:On Friday, 4 April 2014 at 04:10:51 UTC, Saurabh Das wrote:That is perfect! Many many thanks!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, SaurabhYou 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.Saurabh
Apr 04 2014