Installing the Ubuntu QA Dashboard¶
Before you start hacking on the dashboard, you need to first setup your environment. There are a few different ways to do this.
Grab the source¶
Create the bzr environment for the dashboard with:
bzr branch lp:qa-dashboard
cd qa-dashboard
Setting up Vagrant¶
Now we’re ready to go, so create an environment for the dashboard:
vagrant up
That creates a clean environment using vagrant.
After Vagrant finishes setting up, you need to ssh into it:
vagrant ssh
Start developing¶
From inside the vagrant environment, you need to go to where the branch is:
cd dash
You can now work on the dashboard as you would with any other django site.
Vagrant takes care of all of the setup work. You will have a database that is pre-populated with data. Depending on how old the snapshot of the database is, you may need to update the migrations:
python manage.py migrate
Testing¶
The quick way to run the dashboard’s tests:
./manage.py test
Make sure to write tests for all new code your write and all the tests pass.