Commit Graph

7 Commits

Author SHA1 Message Date
Matt Brubeck
1471abe892 Bug 828691 - Add a mach command to run mochitest Metro chrome tests [r=gps] 2013-02-12 14:51:24 -06:00
Gregory Szorc
fab5ee2c09 Bug 797101 - Support running mochitests under debugger with mach; r=Ms2ger 2012-12-05 14:27:54 -08:00
Gregory Szorc
139ddeb204 Bug 797471 - Handle mochitest failures gracefully in mach; r=Ms2ger 2012-11-14 12:56:02 -08:00
Gregory Szorc
bd2380c69d Bug 808336 - Part 1: Refactor mach command handler management; r=jhammel
Previously we were tighly coupled with MozbuildObject. This was not in
the spirit of mach being a generic tool. Now, instead of passing multiple
arguments to __init__ of the class providing the mach command we either
pass 0 or 1. The number of arguments is detected when processing the
@CommandProvider decorator. The optional argument is a named tuple
containing mach run-time state.

Capturing of mach command provider information is now captured in a
class (as opposed to an anoymous tuple). We also capture these in a rich
data structure which is passed as part of the run-time data to the
command provider class. This allows mach commands to inspect the mach
environment.

Mach decorators have been moved to mach.decorators. mach.base is
reserved for generic mach data/container classes.

Existing mach command classes derived from MozbuildObject have been
replaced with either object or mozbuild.base.MachCommandBase. This
latter class translates the mach context instance passed to __init__
into the constructor arguments for MozbuildObject.__init__.

Support for registering function handlers with mach has been removed.
All handlers must be inside classes.
2012-11-06 16:57:41 -08:00
Gregory Szorc
17b131aeae Bug 807861 - Ensure state directory is present before running tests; r=rnewman
DONTBUILD (NPOTB)
2012-11-02 10:32:40 -07:00
Gregory Szorc
2b27cf1cf0 Bug 799291 - Part 3: Move mozbuild.testing into testing/; r=jhammel 2012-10-10 11:08:09 -07:00
Gregory Szorc
432281727e Bug 799291 - Part 1: Move mach commands for test running into test runners; r=jhammel
The code interacting with the test runners now resides in closer
proximity to the code it is invoking. We also purge testing
functionality from mozbuild, which is where it never really belonged.
2012-10-10 11:08:09 -07:00