summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-08-17 07:43:58 -0700
committerChris McDonough <chrism@plope.com>2013-08-17 07:43:58 -0700
commiteabb3477633e4ca8b12008cfb85599ec1558246c (patch)
treef64500ce714a5b010bbe257ec36e08b61316d7f2
parente5bf80f65c1ad3c634ee1fa29735842ec0916afc (diff)
parent50f23dd4fb2ea8690893ac2cf20a0f0483b32a0d (diff)
downloadpyramid-eabb3477633e4ca8b12008cfb85599ec1558246c.tar.gz
pyramid-eabb3477633e4ca8b12008cfb85599ec1558246c.tar.bz2
pyramid-eabb3477633e4ca8b12008cfb85599ec1558246c.zip
Merge pull request #1100 from tomster/nose-selecttests
include nose-selecttests
-rw-r--r--HACKING.txt15
-rw-r--r--setup.py1
2 files changed, 11 insertions, 5 deletions
diff --git a/HACKING.txt b/HACKING.txt
index 5d33aa0ab..abfed6dab 100644
--- a/HACKING.txt
+++ b/HACKING.txt
@@ -23,7 +23,8 @@ checkout.
Since pyramid is a framework and not an application, it can be
convenient to work against a sample application, preferably in its
own virtualenv. A quick way to achieve this is to (ab-)use ``tox``
-with a custom configuration file that's part of the checkout::
+(http://codespeak.net/~hpk/tox/) with a custom configuration file that's part of
+the checkout::
tox -c hacking-tox.ini
@@ -111,9 +112,13 @@ Coding Style
Running Tests
--------------
-- To run tests for Pyramid on a single Python version, run ``python setup.py
- test`` against the Python interpreter from virtualenv into which
- you've ``setup.py develop``-ed Pyramid.
+- To run all tests for Pyramid on a single Python version, run ``nosetests`` from
+ your development virtualenv (See *Using a Development Checkout* above).
+
+- To run individual tests (i.e. during development) you can use a regular
+ expression with the ``-t`` parameter courtesy of the `nose-selecttests
+ <https://pypi.python.org/pypi/nose-selecttests/>`_ plugin that's been installed (along with nose itself) via ``python setup.py dev``. The easiest usage is to
+ simply provide the verbatim name of the test you're working on.
- To run the full set of Pyramid tests on all platforms, install ``tox``
(http://codespeak.net/~hpk/tox/) into a system Python. The ``tox`` console
@@ -125,7 +130,7 @@ Running Tests
example::
$ /usr/bin/easy_install tox
- $ cd ~/hack-on-pyramid/pyramid
+ $ cd ~/hack-on-pyramid/
$ /usr/bin/tox
- The tests can also be run usign ``pytest`` (http://pytest.org/). This is
diff --git a/setup.py b/setup.py
index 60b20b069..64e63956e 100644
--- a/setup.py
+++ b/setup.py
@@ -65,6 +65,7 @@ docs_extras = [
testing_extras = tests_require + [
'nose',
+ 'nose-selecttests',
'coverage',
'virtualenv', # for scaffolding tests
]