Commit Graph

191 Commits

Author SHA1 Message Date
Nick Alexander
f72af9b890 Bug 1169476 -- Implement |mach robocop --serve|. r=gbrown
This adds a flag to |mach robocop| that does everything to run a
Robocop test except launch the actual test.  Instead of launching the
test, it starts the mochi.test server and launches Fennec with a test
profile; then it sits and waits forever.

This allows regular Java IDEs (IntelliJ, but previously Eclipse) to
run Robocop tests like regular instrumentation tests, "injecting" them
into the prepared testing environment.  It's quite nice!
2015-05-29 17:18:07 -07:00
Wes Kocher
5fb62f0f26 Merge inbound to central, a=merge 2015-06-02 18:20:12 -07:00
Nick Alexander
dd2910c8c6 Bug 1170332 - Fix |mach robocop SINGLE_TEST|. r=ahal,gbrown
This patch declares robocop.ini an instrumentation manifest.  It's not
currently possible to declare tests that don't correspond to files, so
we include the .java extension.  (This could be revisited.)

In |mach robocop|, we use the generic test resolving infrastructure to
select the 'instrumentation'/'robocop' flavor/subsuite tests.  In
|runtestsremote.py|, we fall back to robocop.ini, as we always have.
2015-06-01 14:45:48 -07:00
Andrew Halberstadt
14d738554b Bug 1122590 - Make |mach mochitest| properly detect devtools tests (and other subsuites), r=chmanchester, DONTBUILD, a=NPOTB 2015-06-02 11:03:55 -04:00
Andrew Halberstadt
b83ddd237a Bug 1164597 - Consolidate all mochitest mach commands into single |mach mochitest|, r=chmanchester 2015-05-05 16:41:59 -04:00
Myk Melez
f93ed67d20 bug 1125394 - launch runtime executable stub from test app bundle on Mac; r=jmaher,marco 2015-05-06 16:27:33 -07:00
Andrew Halberstadt
8162ad7d63 Bug 1155338 - Move mach command arguments into mochitest harness, r=chmanchester,gbrown 2015-04-30 13:47:01 -04:00
Phil Ringnalda
32ac011754 Back out f4f4e2be3765 (bug 1155338) for Android 4.0/debug mochitest bustage
CLOSED TREE
2015-05-04 18:28:16 -07:00
Andrew Halberstadt
8d7332d88e Bug 1155338 - Move mach command arguments into mochitest harness, r=chmanchester,gbrown 2015-04-30 13:47:01 -04:00
Nick Alexander
222b7bbc4a Bug 1160662 - Refer to robocop.ini in $OBJDIR/_tests, not $OBJDIR. r=margaret 2015-05-01 14:51:27 -07:00
Randell Jesup
c061231d6b Bug 1159300: Add a clone of gmp-fake that doesn't do decryption r=glandium,cpearce 2015-04-30 00:52:26 -04:00
Shih-Chiang Chien
22a868fa56 Bug 1158003 - Add command parser for jetpack-addon and jetpack-package. r=ted 2015-04-24 10:33:23 +08:00
Andrew Osmond
1707151f88 Bug 1155919 - Fix how B2G desktop mochitests would fail to run. r=ahalberstadt 2015-04-17 19:19:28 -04:00
Andrew Halberstadt
0d9ffcd73a Bug 1154006 - [mach] Ability to lazy load parsers passed in via the @Command decorator, r=gps 2015-04-13 15:36:56 -04:00
Andrew Halberstadt
fac478791e Bug 1153413 - Add --subsuite option to mochitest mach command, r=jgriffin 2015-04-10 15:31:36 -04:00
Carsten "Tomcat" Book
31b29d3a74 Backed out changeset f3e21cdfa1fc (bug 1153413) for causing regression like Bug 1153851 2015-04-14 09:13:44 +02:00
Mike Conley
10928e993b Bug 1152864 - Disable unsafe CPOW warnings when running mochitests by default, and add option to re-enable. r=ahal.
--enable-cpow-warnings can now be passed when running a mochitest to re-enable the warnings,
should one wish to do that.
2015-04-10 13:45:22 -04:00
Doug Turner
23d909efef Backout of 89534d1eee73. Bug 1153413 - Add --subsuite to mochitest mach command. r=jgriffin. 2015-04-10 23:31:13 -07:00
Doug Turner
62eee8e779 Bug 1153413 - Add --subsuite to mochitest mach command. r=jgriffin 2015-04-10 20:19:29 -07:00
Andrew Halberstadt
cb97410d53 Bug 1153413 - Add --subsuite option to mochitest mach command, r=jgriffin 2015-04-10 15:31:36 -04:00
Geoff Brown
7e6b1552c9 Bug 1120727 - Add mochitest-plain, mochitest-chrome mach commands for Android; r=ahal 2015-04-09 19:11:56 -06:00
Andrew Halberstadt
023256e3eb Bug 1046992 - Consolidate desktop/b2g/b2g desktop mochitest mach commands, r=gbrown 2015-04-08 11:12:52 -04:00
Andrew Halberstadt
0f300312cf Bug 1147129 - upgrade mochitest from optparse to argparse and move android cli to mochitest_options.py, r=chmanchester 2015-03-24 17:42:24 -04:00
Shian-Yow Wu
1b80189e54 Bug 1147307 - Use the target_out value for b2g mach mochitest. r=ahal 2015-04-07 09:43:26 +08:00
Andrew Halberstadt
baf7554392 Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester
Add a `tags` attribute to a test or DEFAULT section in a manifest:

[test_foo]
tags = foo

Then run all tests with a given tag by passing in `--tag foo` to a supported test harness. So far mochitest, xpcshell and marionette are supported.
2015-03-19 16:15:33 -04:00
Andrew Halberstadt
2e8d5ebe71 Bug 1142050 - Add --chunk-by-runtime option to mochitest, r=jmaher
With --chunk-by-runtime enabled, test runtime data collected from automation is used to try and make all chunks take the same amount of time. So far only data for mochitest browser-chrome is added.
2015-03-26 15:21:45 -04:00
Ryan VanderMeulen
beab04f3c0 Backed out changesets acbab9e22691 and 3c34fd480729 (bug 987360) for Android/B2G xpcshell bustage.
CLOSED TREE
2015-03-27 13:12:19 -04:00
Andrew Halberstadt
90da2d6c5b Bug 987360 - Add ability to tag tests with arbitrary strings and run them, r=chmanchester
Add a `tags` attribute to a test or DEFAULT section in a manifest:

[test_foo]
tags = foo

Then run all tests with a given tag by passing in `--tag foo` to a supported test harness. So far mochitest, xpcshell and marionette are supported.
2015-03-19 16:15:33 -04:00
Mike Hommey
2e51d2ef87 Bug 1147283 - Replace mozpack.path with mozpath. r=mshal
Back when mozpack.path was added, it was used as:

  import mozpack.path
  mozpack.path.func()

Nowadays, the common idiom is:

  import mozpack.path as mozpath
  mozpath.func()

because it's shorter.

$ git grep mozpath\\. | wc -l
423
$ git grep mozpack.path\\. | wc -l
123

This change was done with:
$ git grep -l mozpack.path\\. | xargs sed -i 's/mozpack\.path\./mozpath./g'
$ git grep -l 'import mozpack.path$' | xargs sed -i 's/import mozpack.path$/\0 as mozpath/'
$ (pat='import mozpack.path as mozpath'; git grep -l "$pat" | xargs sed -i "1,/$pat/b;/$pat/d")
2015-03-27 08:13:16 +09:00
Giovanny Andres Gongora Granada
20ef02cc60 Bug 1126057 - Provide better error when ./mach robocop is run without MOZ_HOST_BIN. r=nalexander
DONTBUILD because NPOTB
2015-02-26 10:28:00 -08:00
Nathan Froyd
d0a8529382 Bug 1136700 - enable tweaking of the maximum number of timeouts for mochitests; r=jmaher
When running tests locally, it's occasionally useful to be able to
increase the number of tests permitted to timeout before declaring the
test run a failure.  This patch adds the necessary bits to SimpleTest
and the appropriate amount of plumbing to runtests.py and mach to make
that so.
2015-02-25 09:23:54 -05:00
Andrew Halberstadt
a729c1fa7d Bug 1127376 - PEP8-ify all mochitest .py files (auto-generated), r=ted
This change was generated using the `autopep8` module [1]. To replicate:

    $ pip install --upgrade autopep8
    $ cd gecko
    $ autopep8 -i -a -a -r testing/mochitest --exclude 'testing/mochitest/pywebsocket/*'

[1] https://github.com/hhatto/autopep8
2015-02-13 14:42:02 -05:00
Kershaw Chang
2d0229cdd6 Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Geoff Brown
139b1e69dd Bug 797164 - Add mochitest-chrome-remote mach command; r=ahal 2014-12-23 14:17:39 -07:00
Bob Owen
1ff1eb96b8 Bug 1103946 Part 1: Change --content-sandbox mach / mochitest option to --strict-content-sandbox. r=jmaher
Also, change tests that are skipped using (contentSandbox != off) to (strictContentSandbox).
2014-12-10 09:34:03 +00:00
Gijs Kruitbosch
4d2dd48cd7 Bug 1100419 - add --timeout switch to mochitets, r=ted 2014-11-17 16:52:24 +00:00
Stephen Pohl
b8a5c6be95 Bug 1091109: Don't sign webapprt-stub on OSX because webapps fail to launch due to quarantine bit. r=smichaud,myk 2014-11-03 17:13:16 -05:00
Ryan VanderMeulen
a46685036e Backed out changeset 5eebce6c8845 (bug 1091109) for webapp test failures. 2014-11-01 00:15:44 -04:00
Stephen Pohl
51de241ae8 Bug 1091109: Don't sign webapprt-stub on OSX because webapps fail to launch due to quarantine bit. r=smichaud,myk 2014-10-31 20:39:07 -04:00
Gijs Kruitbosch
846193c649 Bug 1052211 - fix default closure behaviour for mochitests and add --auto-close option to force closing the browser, r=ted 2014-09-11 15:29:57 +01:00
Bob Owen
d1a7ae9ac3 Bug 1067301 - Add mach / mochitest option to run tests with Windows content sandbox. r=jmaher 2014-09-16 08:20:07 +01:00
Edwin Flores
782c1b7715 Bug 1044742 - Make ClearKey CDM accessible to mochitests - r=ted 2014-09-24 10:04:49 +12:00
Dave Townsend
2fa34afa9a Bug 1035512: Add a new common JS testing harness based on the mochitest test runner. r=gps, ted, erikvold, jmaher 2014-09-22 11:08:06 -07:00
Nick Alexander
583cc2c1dc Bug 874729 - Part 4: Add |mach robocop|. r=gps 2014-09-08 16:23:12 -07:00
Tomasz Kołodziejski
1379365ac6 Bug 1057453 - 'mach test filename' should test a single file. r=gps 2014-09-03 13:06:00 +02:00
Ahmed Kachkach
1e912e2d06 Bug 1056329 - Activate structured logging command line args for other mochitest suites. r=ahal 2014-08-25 12:32:00 -04:00
Qeole
be1eaa06fe Bug 1045209 - Updating tests for new OpenH264 plugin path handling. r=unfocused,ted,jmaher 2014-08-25 17:23:34 +02:00
Gijs Kruitbosch
faf3ab2c45 Bug 1057328 - get gmp path for app-override tests, r=ted 2014-08-22 16:28:04 +02:00
Ahmed Kachkach
16da20cb97 Bug 1039833 - Add structured logging command line arguments for mochitest/mach. r=chmanchester, r=ahal 2014-08-13 12:03:00 -04:00
Ryan VanderMeulen
50afc15bdf Merge inbound to m-c. a=merge 2014-08-09 11:19:46 -04:00