Closed Bug 1373216 Opened 7 years ago Closed 7 years ago

Add mach command for running geckodriver

Categories

(Testing :: geckodriver, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jgraham, Assigned: jgraham)

Details

Attachments

(1 file)

Seems useful.
Comment on attachment 8877985 [details]
Bug 1373216 - Add mach command for starting geckodriver,

https://reviewboard.mozilla.org/r/149398/#review153948

::: testing/geckodriver/mach_commands.py:20
(Diff revision 1)
> +    @Command('geckodriver', category='post-build',
> +        description='Run the geckodriver WebDriver implementation')

I wonder whether this should be an extension to `./mach run` so you could call `./mach run geckodriver`.  That has parity with `./mach build testing/geckodriver`.

::: testing/geckodriver/mach_commands.py:24
(Diff revision 1)
> +    @CommandArgument('params', nargs='...',
> +        help='Command-line arguments to be passed through to the program.')

I’m a bit ambivalent to this style as I tend to prefer the more “correct” way to end the first program’s arguments by using ‘--’:

    % cargo run -- --arguments --passed --through

But since this is the style used by `./mach run` already, I guess parity with that is more important.
Attachment #8877985 - Flags: review?(ato) → review+
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/autoland/rev/c8497caddebb
Add mach command for starting geckodriver, r=ato
https://hg.mozilla.org/mozilla-central/rev/c8497caddebb
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee: nobody → james
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: