QA:CodeCoverage: Difference between revisions

Line 59: Line 59:
== <FONT COLOR=GREEN>How to instrument the Mozilla Firefox Browser </FONT> ==
== <FONT COLOR=GREEN>How to instrument the Mozilla Firefox Browser </FONT> ==


 
=== Build config ===
This is what you do to instrument the Mozilla Firefox browser.
This is what you do to instrument the Mozilla Firefox browser.


Line 109: Line 109:




 
=== Execute some Unit tests ===
Change Directory to ~/mozcentral-dbg/_tests/testing/mochitest and execute the following command.
Change Directory to ~/mozcentral-dbg/_tests/testing/mochitest and execute the following command.


Line 128: Line 128:
     ./jsDriver.pl -e smdebug -L lc2 -L lc3 -L spidermonkey-n-1.9.1.tests -s ~/mozcentral-dbg/dist/bin/js -o '-j'
     ./jsDriver.pl -e smdebug -L lc2 -L lc3 -L spidermonkey-n-1.9.1.tests -s ~/mozcentral-dbg/dist/bin/js -o '-j'


Getopt-mixed is a required library by that script it needs to be added.




 
=== Gather the data ===
After you are done with the test runs, you will end up with a bunch of *.gcda and *.gcno files in your build directory.
After you are done with the test runs, you will end up with a bunch of *.gcda and *.gcno files in your build directory.


canmove, Confirmed users
1,343

edits