You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/dev.rst
+23
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ Developer's documentation
5
5
Testing
6
6
-------
7
7
8
+
Using tox
9
+
~~~~~~~~~
10
+
8
11
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:
9
12
10
13
.. code:: shell
@@ -41,6 +44,26 @@ If somehow you've messed-up with your environment(s), you can still recreate it/
41
44
$ tox -re django18-py27 # recreate and run tests using `django18-py27`
42
45
43
46
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:
0 commit comments