Skip to content

Commit 86f29b1

Browse files
committed
[docs] Add doc for py.test
1 parent 8554587 commit 86f29b1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/source/dev.rst

+23
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Developer's documentation
55
Testing
66
-------
77

8+
Using tox
9+
~~~~~~~~~
10+
811
Tests are launched using `tox <http://tox.readthedocs.io/>`_. You may want to become proficient with this tool but the core command you need to know is:
912

1013
.. code:: shell
@@ -41,6 +44,26 @@ If somehow you've messed-up with your environment(s), you can still recreate it/
4144
$ tox -re django18-py27 # recreate and run tests using `django18-py27`
4245
4346
47+
Using py.test
48+
~~~~~~~~~~~~~
49+
50+
You can also run tests with ``py.test``.
51+
52+
You can install it with the following command:
53+
54+
.. code:: shell
55+
56+
$ pip install pytest{,-django}
57+
# Optionally
58+
$ pip install pytest-sugar
59+
60+
We've added a section in our ``setup.cfg``, so you should be able to run tests simply with:
61+
62+
.. code:: shell
63+
64+
$ py.test
65+
66+
4467
Swagger documentation update
4568
----------------------------
4669

0 commit comments

Comments
 (0)