B2G mochitests now use mochitest.ini manifests instead of b2g.json

For awhile now we've been using these hacky JSON based manifests to 
enable and disable mochitests on B2G. Now, thanks to the work of an 
awesome contributor (vaibhav1994), all the B2G mochitests are using the 
mochitest.ini format. This allows us to annotate tests with metadata, 
like whether the test should be skipped or not.

What does this mean for you? If you are enabling/disabling, or adding a 
new mochitest, you now need to edit the 'mochitest.ini' file which lives 
in the same directory as your test file.

For example, if I want to disable 
dom/media/tests/mochitest/test_dataChannel_basicAudio.html on emulators, 
I'd open up dom/media/tests/mochitest/mochitest.ini, find the 
corresponding entry and add a skip-if (or fail-if) line below:

     [test_dataChannel_basicAudio.html]
     skip-if = toolkit == 'gonk'

Here is a quick cheat sheet of b2g related skip-if/fail-if syntax:

b2g emulator/device: toolkit == 'gonk'
b2g desktop only:    buildapp == 'b2g' && toolkit != 'gonk'
all b2g platforms:   buildapp == 'b2g'


For more information, see the following documentation:
* 
https://developer.mozilla.org/en-US/docs/Mochitest#Add_an_entry_to_mochitest.ini
* 
https://ci.mozilla.org/job/mozilla-central-docs/Tree_Documentation/buildsystem/test_manifests.html
* http://mozbase.readthedocs.org/en/latest/manifestdestiny.html
* 
https://ci.mozilla.org/job/mozilla-central-docs/Tree_Documentation/buildsystem/mozinfo.html


Cheers,
Andrew

p.s There is still one patch that needs to land before we can completely 
remove the b2g.json files. Until we do so, please consider them obsolete.
0
Andrew
3/13/2014 2:21:22 PM
mozilla.dev.b2g 4036 articles. 0 followers. Post Follow

1 Replies
746 Views

Similar Articles

[PageSpeed] 19

Glory hallelujah! Thanks to you, Joel, and Vaibhav for getting this work 
done.
0
Ryan
3/13/2014 3:01:27 PM
Reply:

Similar Artilces:

b2g-info now subsumes b2g-procrank and b2g-ps
Dear all, I just merged b2g-info, a tool which gives you information about b2g processes running on a device, into gonk-misc. You can get this new tool by running ./repo sync and then rebuilding with ./build.sh. b2g-info is meant to subsume b2g-procrank and b2g-ps. It (hopefully) outputs all of the useful information from b2g-ps, b2g-procrank, b2g-procrank --nice, and b2g-procrank --oom plus some additional data in a (hopefully) easier-to-digest format. b2g-info is also faster than b2g-procrank, which makes a difference if you're running b2g-info repeatedly from a script. ...

|mach mochitest-remote| and |mach mochitest-b2g-desktop| replaced by |mach mochitest-plain|
Bug 1046992 (just landed on inbound) removes the `mochitest-remote` and `mochitest-b2g-desktop` mach commands. Instead, simply run |mach mochitest-plain| like you would on desktop. The `mochitest-plain` command will detect what platform you have built and do the right thing. In the near future, I'll also be removing all of the suite specific (e.g |mach mochitest-chrome|) commands. The |mach mochitest| command will be the single entry point into the harness, no matter what flavor or platform you are using. On a related note, |mach mochitest-chrome| is also now available...

B2G desktop mochitests now running
Just an fyi, b2g desktop mochitests are now running on all mozilla-central based branches (this does not include mozilla-b2g26, though if this is desired, I can look into it). They are running the same set of mochitests as the b2g emulators, minus a few that had b2g desktop specific issues (see bug 931116 for a list of which ones). Please file test issues as blocking bugs to bug 931116. The biggest outstanding issue is the inability to run a single test via mach (see bug 927889 for more details or if you'd like to help investigate). Thanks, Andrew ...

[signin][b2g] - B2G->dev merge
We have been discussing forceAuthentication, but there are other B2G features that must be merged into dev. So that JedP and I can prioritize, bisect, and tackle, can we get a list of features and any dependencies they have on other features? Off the top of my head I know of: * forceAuthentication * forceIssuer * allowUnverified * special TOS/PP handling - in B2G, TOS/PP links must be opened in an IFRAME instead of in a new tab. * A way of indicating experimental features Are there other new features that I am missing? We are actively discussing forceAuthentication, but t...

mochitest-chrome tests now running on B2G emulators
A mochitest-chrome job is now running on B2G emulators, and appears in Treeherder as M(c). This job skips most existing chrome tests, since most of the existing tests are not compatible with B2G. But it provides a better alternative when writing mochitests that need chrome privileges than using SpecialPowers in mochitest-plain. If you want your new chrome mochitest to get run on B2G, just make sure it's written as an XHTML file and not a XUL one; see https://dxr.mozilla.org/mozilla-central/source/testing/mochitest/static/chrome.template.txt .. If you don't want your new ...

Debug mochitests on B2G
At the last work week, Jonas indicated it was important to get mochitests (and other tests) running on debug builds, since tests running against debug builds catch assertions, which are silently ignored on opt builds. These assertions indicate some unexpected state was reached in the code, which is usually indicative of a bug. We have had debug mochitests running on cedar for a while now. They're all orange or red. I've just finished triaging them and have filed bugs for all the unique failures; see https://bugzilla.mozilla.org/showdependencytree.cgi?id=916359&hi...

blocking-b2g / feature-b2g / status-b2g-v2.5 change for FxOS 2.5 in Bugzilla
--Apple-Mail=_A344D24D-898F-4783-9B3E-33CDD840A153 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear b2g friends, Just to inform you the following change has been applied to Bugzilla = since we have announced FxOS 2.5: 1. blocking-b2g and feature-b2g flags are renamed from 3.0?/+ to = 2.5?/+. 2. New tracking flag status-b2g-v2.5 is created. Sincerely, ------------------------------------------------------- Josh Cheng Engineering Project Manager, Firefox OS Mozilla Corporation =E2=9C=89 joshcheng@mozilla.com <mailto:joche...

running B2G mochitests on try
We are now running a small set of mochitests on B2G emulators on all trunk trees. We'll be expanding this set of tests as quickly as we can. Meanwhile, if you'd like to run tests through try, here's how you can do it: - Use a platform field of ics_armv7a_gecko - Use a build type of 'o' (opt) - If you want to change the set of mochitests that are run, modify this file: http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/b2g.json A complete try push syntax might look like: try: -b o -p ics_armv7a_gecko -t none -u mochitests Regards, Jona...

mailman config changed; text/html should now show up in dev-gaia and dev-b2g and links should not be corrupted
This is a multi-part message in MIME format. --------------040907020305070007060305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Assuming all has gone well, the mailman list-server software we use for dev-b2g and dev-gaia should no longer force multipart/alternative mail messages to use the first sub-part (which is likely to be text/plain). What this means is that if you use the gmail web UI to talk on the list and your hyperlinks have ended up messed up, that should stop happening. (This, by definition, is/was a bug in gmail'...

mailman config changed; text/html should now show up in dev-gaia and dev-b2g and links should not be corrupted
This is a multi-part message in MIME format. --------------040907020305070007060305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Assuming all has gone well, the mailman list-server software we use for dev-b2g and dev-gaia should no longer force multipart/alternative mail messages to use the first sub-part (which is likely to be text/plain). What this means is that if you use the gmail web UI to talk on the list and your hyperlinks have ended up messed up, that should stop happening. (This, by definition, is/was a bug in gmail'...

Mach target for B2G desktop mochitests
If you have a B2G desktop build, you can now run ./mach mochitest-b2g-desktop (./mach help mochitest-b2g-desktop for more options). If your environment isn't set up properly, the command should guide you through the steps needed with helpful error messages. But for posterity, you need to: * pass in --profile or set GAIA_PROFILE to a non-debug gaia profile * have a marionette enabled build (ENABLE_MARIONETTE=1 in your mozconfig) -Andrew ...

running mochitests in B2G desktop build
Hi all, i followed the directions at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Using_the_B2G_desktop_client and https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Testing/Mochitests to run a mochitest in the B2G desktop build (on linux) for something i'm trying to land that's having issues on B2G. i'm hitting this error : JavaScript error: http://mochi.test:8888/tests/content/base/test/test_CSP_inlinestyle.html?autorun=1&closeWhenDone=1&logFile=%2Fhome%2Fimelven%2Fsrc%2Fmozilla-central%2Fobjdir-dbg%2F_tests%2Ftesting%2Fmochites...

Is it time for mochitest-chrome on Android and B2G
Periodically, we field a request to add support for mochitest-chrome to Android and B2G. To date, we've avoided this by pointing out ways that mochitest-plain can be used for the same use case, which usually involves SpecialPowers. We have a new request for this, in the context of requestAutocomplete (https://bugzilla.mozilla.org/show_bug.cgi?id=1021060#c16). The tests for this, as well as some other features we've seen requests for, need to be able to execute some setup code with chrome privileges, and SpecialPowers isn't always flexible enough. As bholley poin...

running mochitests on B2G desktop builds
It's now possible to run mochitests on B2G desktop builds. Instructions are at https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/B2G_Mochitests. If you run into any problems, please ping jgriffin on #ateam, or file bugs under Testing:Mochitest. Jonathan ...

Web resources about - B2G mochitests now use mochitest.ini manifests instead of b2g.json - mozilla.dev.b2g

Autophone Status Update 2013-07-20 »
... (Android 4.0.4/Mali-400 MP) , samsung-gs3-2 (Android 4.0.4/Mali-400 MP) and atrix-1 (Android 4.0.4/Adreno 225)> are all green with the Mochitest-Canvas ...

Videos - Code Firefox
Videos Cheatsheet About Available Unavailable Videos Getting ready for development Setting up a Windows Firefox build environment Setting up ...

mitcho > blog
One of the last bugs for Firefox Panorama was bug 625818: “Check Panorama mochitest test suite coverage” . Our automated tests ensure that we ...

Mozilla Firefox 4 Beta 11 Fixes
You are viewing information archived from Mozilla.org on 2014-02-12. skip to Navigation switch language Mozilla Firefox mozilla Desktop Features ...

b2g - Dknite's Lair
Posts about b2g written by dknite

In-content preferences are now available in Firefox Nightly
Starting today, users can access in-content preferences in Firefox Nightly. First, a big congratulations to Zuhao (Joe) Chen, Jon Rietveld, Owen ...

Archive
ZPAO is Paul O’Shannessy About + Contact Archive Archive 2013-11-12 Do We Need Node? 2013-10-03 This is some good SHIT 2013-05-10 Adding Line ...

← Last week in the “Accessible” module, March 16, 2009
As the accessibility team was at the 2009 CSUN Center on Persons with Disabilities conference last week, not much happened on the forefront that ...

That’s what I’m talking about
Bread and Circuits Philosophy for the programming set, served on home made bread Skip to content About – David Humphrey Reading Open Data « Taking ...

Bug List
Bugzilla@Mozilla – Home - New - Browse - Search - [ help ] - Reports - Requests - Product Dashboard - Help - New Account - Log In or Remember ...

Resources last updated: 11/23/2015 1:49:18 PM