summaryrefslogtreecommitdiff
path: root/doc/example/nose.txt
blob: ec97f18e85e567ffc821aa2b839f6602ede4e38c (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
29
30
31
32
33
34
35
36
37
38
39
40
41

nose and tox
=================================

It is easy to integrate `nosetests`_ runs with tox.
For starters here is a simple ``tox.ini`` config to configure your project
for running with nose:

Basic nosetests example
--------------------------

Assuming the following layout::

    tox.ini      # see below for content
    setup.py     # a classic distutils/setuptools setup.py file

and the following ``tox.ini`` content::

    [testenv]
    deps=nose
    commands=
      nosetests \
            []        # substitute with tox' positional arguments

you can invoke ``tox`` in the directory where your ``tox.ini`` resides.
``tox`` will sdist-package your project create two virtualenv environments
with the ``python2.6`` and ``python2.5`` interpreters, respectively, and will
then run the specified test command.


More examples?
------------------------------------------

You can use and combine other features of ``tox`` with your tox runs,
e.g. :ref:`sphinx checks`.  If you figure out some particular configurations
for nose/tox interactions please submit them.

Also you might want to checkout :doc:`general`.

.. include:: ../links.txt