Export to GitHub

flexcover - issue #2

Need to document cleanup/exit protocol for instrumented apps


Posted on Apr 24, 2008 by Helpful Horse

When an instrumented app exits forcibly, some of its data may not have been written to the LocalConnection yet. Such apps should call CoverageManager.exit() to exit, not System.exit() or fscommand("quit").

Comment #1

Posted on Nov 8, 2010 by Quick Bear

Cool library... thx for writing it! We have incorporated it into our build.

However, it seems that for really quickly executing tests, coverage data sometimes never makes it to the CoverageViewer, even when we call CoverageManager.exit() to exit the test. I found that I had to insert a 1000msec delay before calling CoverageManager.exit() to be sure that the data would make it out of the test to be collected. Shorter delays (i.e. <= 500msec) were insufficient).

Status: Accepted

Labels:
Type-Defect Priority-Medium