File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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-
2519Building the Docs
2620=================
2721Sphinx 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/ ``.
You can’t perform that action at this time.
0 commit comments