summaryrefslogtreecommitdiffstats
path: root/doc/development/unit-testing.txt
blob: 7af969686811900691c05b127a90fdb59fa2c9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.. -*- mode: rst -*-

.. _development-unit-testing:

==================
Bcfg2 unit testing
==================

.. _Python Mock Module: http://python-mock.sourceforge.net/
.. _Python Nose: http://readthedocs.org/docs/nose/en/latest/

You will first need to install the `Python Mock Module`_ and `Python
Nose`_ modules. You can then run the existing tests with the
following.::

    cd testsuite
    nosetests

You should see output something like the following::

    ..................................................
    ----------------------------------------------------------------------
    Ran 50 tests in 0.121s

    OK

Unit tests are also run by Travis-CI, a free continuous integration
service, at http://travis-ci.org/#!/Bcfg2/bcfg2/