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 BearCool 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