Open Bug 1415281 Opened 7 years ago Updated 2 years ago

Create a common test harness argument parser


(Testing :: General, enhancement, P3)



(Not tracked)


(Reporter: ahal, Unassigned)


We've long thought it a good idea if our test harnesses standardized on command line arguments as much as possible. We attempt to name them the same as much as possible, but there is no enforcement.

We should create a common test harness argument parser that gets used by most of our test harnesses. This way the common arguments are guaranteed to stay in sync. I'd propose this lives under 'moztest.cli'. The benefit is that these arguments can now be used in places like |mach test| and |mach try| (in the future).

Under tools/tryselect, I think there is a pretty neat way of sharing arguments:

We could create a bunch of "groups". E.g, a 'chunking' group that contains all chunking related arguments. Specific test harness parsers could then declare which groups they want to add, e.g:

        common_groups = ['chunking', 'debugging', 'marionette']
        arguments = {


        common_groups = ['chunking', 'debugging']
        arguments = {

This will let us slice and dice arguments however we want, and provide an easy mechanism to share them across only the test harnesses that need them.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.