44
edits
(mochitest-o is not relevant on Android any more, for extensions.) |
(Add mach try fuzzy) |
||
Line 36: | Line 36: | ||
By default, "mach try" is an alias for [https://firefox-source-docs.mozilla.org/tools/try/selectors/auto.html "mach try auto"], which attempts to select some relevant tests. If unsure about what to run, "mach try" is recommended. | By default, "mach try" is an alias for [https://firefox-source-docs.mozilla.org/tools/try/selectors/auto.html "mach try auto"], which attempts to select some relevant tests. If unsure about what to run, "mach try" is recommended. | ||
To have more control over the tests to run, the classic [https://firefox-source-docs.mozilla.org/tools/try/selectors/syntax.html "mach try syntax"] can be used instead. | To have more control over the tests to run, the newer [https://firefox-source-docs.mozilla.org/tools/try/selectors/fuzzy.html "mach try fuzzy"] or the classic [https://firefox-source-docs.mozilla.org/tools/try/selectors/syntax.html "mach try syntax"] can be used instead. | ||
=== mach try fuzzy === | |||
Examples of "mach try fuzzy" commands (add "--no-push" to see the selected jobs without submitting to try): | |||
* Run most relevant WebExtensions tests. This is recommended and was added in https://bugzilla.mozilla.org/show_bug.cgi?id=1856473 | |||
<nowiki>./mach try --preset webextensions</nowiki> | |||
* Run relevant extension API tests on Android: | |||
<nowiki>./mach try fuzzy -q "'geckoview '64-qr !gpu mobile/android/components/extensions toolkit/components/extensions</nowiki> | |||
* (Note: if you get <nowiki>bash: !gpu: event not found</nowiki>, replace all exclamation marks (<nowiki>!</nowiki>) with <nowiki>"'!'"</nowiki>) | |||
* Run relevant extension API and AOM tests on Windows: | |||
<nowiki>./mach try fuzzy -q "'windows11-64-2009-qr !wpt !gpu !msix browser/components/extensions toolkit/components/extensions toolkit/mozapps/extensions</nowiki> | |||
If in doubt about what to use in the query (<nowiki>-q</nowiki>), run <nowiki>./mach try fuzzy --no-push</nowiki> to launch an interactive program that displays the matched jobs. | |||
=== mach try syntax === | |||
Examples of "mach try syntax" commands (add "--no-push" to see the generated try syntax without actually triggering the try job): | Examples of "mach try syntax" commands (add "--no-push" to see the generated try syntax without actually triggering the try job): |
edits