Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does set coverage to require files other than VFP runtimes?

Status
Not open for further replies.

pctest

Programmer
Apr 12, 2004
89
US
I'm trying to use set coverage to in a scx. But I don't get anything and no error. The appplication is compiled using VFP 6 SP5 and only VPF6 runtimes files are installed.

I wonder whether set coverage to requires coverage.app installed.
 
Yes it does require the coverage app. There is no magic here, you've got to provide this code for it to do it's thing. You'll need to make sure you have the system variable _COVERAGE set to the coverage app - the runtime normally doesn't have a value for this. You can set in in your CONFIG.FPW or in your program. Remember you'll need a lot of disk space if you plan on letting this run for very long.

Rick
 
Hi Rick,

If I want to set it in a form such as in click event of a button, is this right:

_coverage to c:\test\coverage.app
set coverage to c:\test\mylog
.
.
.
set coverage to
 
Close, try:
Code:
_coverage = "c:\test\coverage.app"
* put the next file name in quotes 
*  if you have any embedded spaces in the path
set coverage to c:\test\mylog
...

set coverage to
Rick
 
Hi Rick,

I added this in the click event of a commandbutton of a form:

_coverage to "c:\test\coverage.app"
set coverage to c:\test\mylog
.
.
.
set coverage to

It runs with no error but no log file is generated.

Thank you for any help.
 
Hi Rick,

Just want to clarify that my last post should be:

_coverage = "c:\test\coverage.app"

instead of

_coverage to "c:\test\coverage.app"

Does it matter how the exe was built such as the option debug info?

 
Hi Mike,

According to replies to my post in UniversalThread, coverage is not supported in runtime before VFP9.

 
If I execute "do ####.exe" in VFP IDE, then I will get the log. If I execute ####.exe directly, no log will be created.
 
I guess that the coverage.app must be checking VERSION(2), and it skips doing anything in the runtime. :-(

Rick

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top