Update how to install test dependencies
This commit is contained in:
parent
47d0949666
commit
7fa3d5a509
@ -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::
|
||||
|
||||
@ -1,2 +1 @@
|
||||
coverage
|
||||
-e bzr+http://liw.iki.fi/bzr/coverage-test-runner/trunk/#egg=CoverageTestRunner
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user