Debian Codegraph @

docs/getting_started.rst

raw
1 Getting started with nose2
2 ==========================
3
4 Installation
5 ------------
6
7 The recommended way to install nose2 is with `pip`_ ::
8
9 pip install nose2
10
11 Running tests
12 -------------
13
14 To run tests in a project, use the ``nose2`` script that is installed
15 with nose2::
16
17 nose2
18
19 This will find and run tests in all packages in the current working
20 directory, and any sub-directories of the current working directory
21 whose names start with 'test'.
22
23 To find tests, nose2 looks for modules whose names start with
24 'test'. In those modules, nose2 will load tests from all
25 :class:`unittest.TestCase` subclasses, as well as functions whose
26 names start with 'test'.
27
28 .. todo ::
29
30 ... and other classes whose names start with 'Test'.
31
32
33 The ``nose2`` script supports a number of command-line options, as
34 well as extensive configuration via config files. For more information
35 see :doc:`usage` and :doc:`configuration`.
36
37 .. _pip : http://pypi.python.org/pypi/pip/1.0.2
38 .. _pypi : http://pypi.python.org/pypi