How to run automated tests using MozMill on a Mac
Brief Overview of Installation on newer Mac (version 10.4 or higher)
Since my Mac already has Python 2.7 installed (MozMill requires at least Python 2.5) downloading MozMill is as easy as entering 4 lines into the terminal.
curl -O https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
sudo python ez_setup.py
sudo easy_install pip
sudo pip install mozmill
More details on installation here.
Clone the Automated Test Repository using Git
Using Git we can clone the Automated MozMill test repository with the following command in the terminal:
git clone https://github.com/mozilla/mozmill-automation
Switch to hotfix-2.0 branch
We need to switch to the hotfix-2.0 branch because it contains updates we need to run automation tests. So first we change to the newly created mozmill-automation branch.
Next we switch to the hotfix-2.0 branch by typing these lines into our terminal:
git checkout hotfix-2.0
sudo python setup.py develop
Run Automated tests
Now we should be able to run automated tests by entering this in the terminal:
testrun_functional /Applications/FirefoxNightly.app/ –report=http://mozmill-crowd.blargon7.com/db/
Note: Our pathway (/Applications/FirefoxNightly.app) is specific for Macs using %path_to_firefox% (on Mac to .app)
And behold the computer runs tests for you faster than you could.
If you could get this working then go ahead and award yourself a badge!
You can use this code kvcw3t at to redeem your badge here.
Also, feel free to comment on how I could’ve made these instructions easier to follow. You can check out the official documentation here.