~mbernis/openlp/2.2_remote_app_enhancement

« back to all changes in this revision

Viewing changes to tests/README.txt

  • Committer: Tim Bentley
  • Date: 2012-12-08 11:27:22 UTC
  • mfrom: (2127 openlp)
  • mto: This revision was merged to the branch mainline in revision 2149.
  • Revision ID: tim.bentley@gmail.com-20121208112722-sy5wud6xz1xsmrty
Head

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Tests for OpenLP
 
2
================
 
3
 
 
4
This directory contains unit tests for OpenLP. The ``functional`` directory contains functional unit tests.
 
5
 
 
6
Prerequisites
 
7
-------------
 
8
 
 
9
In order to run the unit tests, you will need the following Python packages/libraries installed:
 
10
 
 
11
 - Mock
 
12
 - Nose
 
13
 
 
14
On Ubuntu you can simple install the python-mock and python-nose packages. Most other distributions will also have these
 
15
packages. On Windows and Mac OS X you will need to use ``pip`` or ``easy_install`` to install these packages.
 
16
 
 
17
Running the Tests
 
18
-----------------
 
19
 
 
20
To run the tests, navigate to the root directory of the OpenLP project, and then run the following command::
 
21
 
 
22
    nosetests -v tests
 
23
 
 
24
Or, to run only the functional tests, run the following command::
 
25
 
 
26
    nosetests -v tests/functional
 
27
 
 
28
Or, to run only a particular test suite within a file, run the following command::
 
29
 
 
30
    nosetests -v tests/functional/test_applocation.py
 
31
 
 
32
Finally, to only run a particular test, run the following command::
 
33
 
 
34
    nosetests -v tests/functional/test_applocation.py:TestAppLocation.get_frozen_path_test