Bug 1278649 - Add command line argument to collect code coverage. draft
authorGreg Mierzwinski <gmierz2@outlook.com>
Wed, 08 Jun 2016 09:36:41 -0400
changeset 376711 4278fbd166109f6b4bbf8f329747e15ca50cb381
parent 375369 3e8ee3599a67edd971770af4982ad4b0fe77f073
child 376712 740973f31db18e0bf035d3249a2150f35a7e1437
push id20644
push userbmo:gmierz2@outlook.com
push dateWed, 08 Jun 2016 13:42:07 +0000
bugs1278649
milestone49.0a1
Bug 1278649 - Add command line argument to collect code coverage. This adds the flag '--jscov-dir-prefix' to the list of available command line arguments for xpcshell testing. MozReview-Commit-ID: H8Ee8LnVdjT
testing/xpcshell/xpcshellcommandline.py
--- a/testing/xpcshell/xpcshellcommandline.py
+++ b/testing/xpcshell/xpcshellcommandline.py
@@ -56,16 +56,20 @@ def add_common_arguments(parser):
                         action="store", type=str, dest="xrePath",
                         # individual scripts will set a sane default
                         default=None,
                         help="absolute path to directory containing XRE (probably xulrunner)")
     parser.add_argument("--symbols-path",
                         action="store", type=str, dest="symbolsPath",
                         default=None,
                         help="absolute path to directory containing breakpad symbols, or the URL of a zip file containing symbols")
+    parser.add_argument("--jscov-dir-prefix",
+                        action="store", type=str, dest="jscovdir",
+                        default=argparse.SUPPRESS,
+                        help="Directory to store per-test javascript line coverage data as json.")
     parser.add_argument("--debugger",
                         action="store", dest="debugger",
                         help="use the given debugger to launch the application")
     parser.add_argument("--debugger-args",
                         action="store", dest="debuggerArgs",
                         help="pass the given args to the debugger _before_ "
                         "the application on the command line")
     parser.add_argument("--debugger-interactive",