Open
Bug 1418858
Opened 7 years ago
Updated 2 years ago
Determine whether JSDCov coverage collector should be finalized after each manifest or all tests.
Categories
(Testing :: Code Coverage, enhancement)
Testing
Code Coverage
Tracking
(Not tracked)
NEW
People
(Reporter: sparky, Unassigned)
References
(Blocks 1 open bug)
Details
We've recently found that the mochitest-bc JSDCov run has the coverageCollector call finalize() after each manifest although the documentation for finalize() states that it should be run after all the tests have completed [1]. We need to determine if we should run it after each manifest or after all the manifests (all the tests) have completed.
[1]: https://dxr.mozilla.org/mozilla-central/source/testing/modules/CoverageUtils.jsm#224
Reporter | ||
Comment 1•7 years ago
|
||
Hi :chamanchester, would you be able to tell us whether this comment ([1] above) states that finalize() should be run after each manifest or after all the manifests (all the tests)?
Flags: needinfo?(cmanchester)
Comment 2•7 years ago
|
||
My recollection (some years old now) is that I added to prevent memory leaks when shutting down the browser. So it should happen at the end of whatever corresponds to a browser instance: if we're running the browser once per manifest, then at the end of the manifest, if once per directory or chunk, etc, at the end of that.
Flags: needinfo?(cmanchester)
Reporter | ||
Comment 3•7 years ago
|
||
Great, thanks for the insight :chmanchester. I'll go through and make sure that this is the case for each of the suites we are currently running. (I might change the comment at the end of CoverageUtils.jsm also to reflect this).
Reporter | ||
Comment 4•6 years ago
|
||
The linux64-jsdcov build has been disabled, and no longer runs in taskcluster, see bug 1496791. Although the tooling still exists so that it can be done locally so I will leave this issue open.
Reporter | ||
Updated•6 years ago
|
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•