Closed Bug 1301984 Opened 3 years ago Closed 3 years ago

Enable collection of mochitest-plain code coverage with the JS Debuger.

Categories

(Testing :: Code Coverage, defect)

defect
Not set

Tracking

(firefox54 fixed)

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: sparky, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This will be similar to how browser-chrome uses the "--jscov-dir-prefix" flag. It will have to be implemented for mochitest-plain though. I believe the file that deals with mochitest-plain tests is https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/tests/SimpleTest/TestRunner.js but :chmanchester would be the person to ask about this. If it is, then the task will be to have a JS Debugger code coverage collector enabled while tests are running.
Blocks: 1301174
Blocks: 1301985
Comment on attachment 8840002 [details]
Bug 1301984 - Add code coverage to mochitest-plain tests.

https://reviewboard.mozilla.org/r/114560/#review116004

looking great.
Attachment #8840002 - Flags: review?(jmaher) → review+
Pushed by jmaher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1dcde4d265a4
Add code coverage to mochitest-plain tests. r=jmaher
https://hg.mozilla.org/mozilla-central/rev/1dcde4d265a4
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.