Skip to content

Commit 2fd49c2

Browse files
committed
Update test-running instructions in README-dev.
1 parent 781ca40 commit 2fd49c2

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

README-dev.rst

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ Releasing
1616
so that it looks like ``(x, y, z, 'post')``
1717
* Commit and push
1818

19-
Running the Tests
20-
=================
21-
In order for the extensions to be built and used in the test, run::
22-
23-
python setup.py nosetests
24-
2519
Building the Docs
2620
=================
2721
Sphinx is required to build the docs. You probably want to install through apt,
@@ -48,3 +42,26 @@ For example::
4842
cp -R docs/_build/1.0.0-beta1/* ~/python-driver-docs/
4943
cd ~/python-driver-docs
5044
git push origin gh-pages
45+
46+
Running the Tests
47+
=================
48+
In order for the extensions to be built and used in the test, run::
49+
50+
python setup.py nosetests
51+
52+
You can run a specific test module or package like so::
53+
54+
python setup.py nosetests -w tests/unit/
55+
56+
If you want to test all of python 2.6, 2.7, and pypy, use tox (this is what
57+
TravisCI runs)::
58+
59+
tox
60+
61+
By default, tox only runs the unit tests because I haven't put in the effort
62+
to get the integration tests to run on TravicCI. However, the integration
63+
tests should work locally. To run them, edit the following line in tox.ini::
64+
65+
commands = {envpython} setup.py build_ext --inplace nosetests --verbosity=2 tests/unit/
66+
67+
and change ``tests/unit/`` to ``tests/``.

0 commit comments

Comments
 (0)