Update how to install test dependencies

This commit is contained in:
Stein Magnus Jodal 2009-12-23 22:51:07 +01:00
parent 47d0949666
commit 7fa3d5a509
3 changed files with 8 additions and 8 deletions

View File

@ -96,9 +96,13 @@ To stop mopidy, press ``CTRL+C``.
Running tests
-------------
To run tests, you need a couple of dependiencies which can be installed using
pip::
To run tests, you need a couple of dependiencies. Some can be installed through Debian/Ubuntu package management::
sudo aptitude install python-coverage
The rest can be installed using pip::
sudo aptitude install python-pip python-setuptools bzr
pip install -r test-requirements.txt
Then, to run all tests::

View File

@ -1,2 +1 @@
coverage
-e bzr+http://liw.iki.fi/bzr/coverage-test-runner/trunk/#egg=CoverageTestRunner

View File

@ -1,14 +1,11 @@
#! /usr/bin/env python
import os
import sys
from CoverageTestRunner import CoverageTestRunner
sys.path.insert(0,
os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
def main():
sys.path.insert(0,
os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
r = CoverageTestRunner()
r.add_pair('mopidy/handler.py', 'tests/handlertest.py')
r.run()