summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorMichael Birtwell <michael.birtwell@gmail.com>2015-09-21 10:49:35 +0100
committerMichael Birtwell <michael.birtwell@gmail.com>2015-09-21 10:56:05 +0100
commitbb42e43ee7683971f8801dd740c48fb39a3438a3 (patch)
treeac04b7ddbcb2a607784a1689419fe5f384d26ce9 /CONTRIBUTING.rst
parent8fe5c704e364547f72fb985541895fc7c905429a (diff)
downloadpytest-bb42e43ee7683971f8801dd740c48fb39a3438a3.tar.gz
contributing: Add instructions from PyCon
At PyCon we realised that the virtualenv created in the make file wasn't used in the subsequent steps in CONTRIBUTING.rst. This change removes the reference the make and suggesting installing tox directly. Also changed the explanation that follows to make more sense with this change
Diffstat (limited to 'CONTRIBUTING.rst')
-rw-r--r--CONTRIBUTING.rst16
1 files changed, 11 insertions, 5 deletions
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 4a418e62e..5032e27b3 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -158,13 +158,15 @@ but here is a simple overview:
If you need some help with Git, follow this quick start
guide: https://git.wiki.kernel.org/index.php/QuickStart
-#. Create a development environment
+#. Install tox
+
+ Tox is used to run all the tests and will automatically setup virtualenvs
+ to run the tests in.
(will implicitly use http://www.virtualenv.org/en/latest/)::
- $ make develop
- $ source .env/bin/activate
+ $ pip install tox
-#. You can now edit your local working copy.
+#. Run all the tests
You need to have Python 2.7 and 3.4 available in your system. Now
running tests is as simple as issuing this command::
@@ -177,7 +179,11 @@ but here is a simple overview:
index where newer (not yet released to pypi) versions of dependencies
(especially ``py``) might be present.
- To run tests on py27 and pass options (e.g. enter pdb on failure)
+#. You can now edit your local working copy.
+
+ You can now make the changes you want and run the tests again as necessary.
+
+ To run tests on py27 and pass options to pytest (e.g. enter pdb on failure)
to pytest you can do::
$ python runtox.py -e py27 -- --pdb