Mochitest FAQ

From CDOT Wiki
Revision as of 19:44, 29 November 2011 by RHung (talk | contribs) (Getting Started)
Jump to: navigation, search

Getting Started

  1. Make sure you have forked a copy of mozilla-central. If you haven't, you can fork from here
  2. Add a remote for rhung's mozilla-central (this is where you'll be making your pull requests for the tests)
    git remote add [an alias] git://github.com/rhung/mozilla-central.git
  3. For a basic template to get started on writing mochitests, you can get one here.

Making a pull request to someone that you didn't fork from

  1. Click on the pull request button and you should get a screen with something similar to this
  2. By clicking on the Change Commits you'll get a screen to look something like this
  3. If you forked from humphd's repository, your Base branch should look something similar to the screenshot posted above. You want to change from humphd/mozilla-central to rhung/mozilla-central
  4. Next after the @ symbol, you want to make sure to select the mouselock-tests. It'll look something like this
  5. You can also make sure you have proper branch selected by changing the branch shown under your Head branch box after everything that needs to be changed is changed, click Update Commit Range
  6. Finally you'll just have to fill in this, once you do, click Send Pull Request and if everything works, you're done!

Feel free to contribute more information!