changeset 1401:29e980721a6b

make test (new make target plus testing docs update)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 24 Jun 2012 16:41:19 +0200
parents 89110a0edced
children 3bf3bc730b5d
files Makefile docs/devel/development.rst
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Jun 24 16:32:13 2012 +0200
+++ b/Makefile	Sun Jun 24 16:41:19 2012 +0200
@@ -8,6 +8,9 @@
 all:
 	python setup.py build
 
+test:
+	py.test --pep8 -rs
+
 dist: clean-devwiki
 	-rm MANIFEST
 	python setup.py sdist
--- a/docs/devel/development.rst	Sun Jun 24 16:32:13 2012 +0200
+++ b/docs/devel/development.rst	Sun Jun 24 16:41:19 2012 +0200
@@ -192,9 +192,11 @@
 To run the tests, activate your virtual env and invoke py.test from the
 toplevel directory::
 
-    py.test  # runs all tests
+    make test  # easiest way (all tests, pep8, skipped info)
+    py.test --pep8  # runs all tests, including pep8 checks
     py.test -rs  # runs all tests and outputs infos about skipped tests
     py.test -k somekeyword  # just run the tests matching somekeyword
+    py.test --pep8 -k pep8  # runs only pep8 checks
     py.test sometests.py  # just run the tests contained in sometests.py
 
 Tests output
@@ -214,8 +216,7 @@
 Writing tests with `py.test` is easy and has little overhead. You basically just
 use `assert` statements.
 
-For more information, please read http://pytest.org/ - but keep in
-mind that we currently still use **py.test 1.3.4**.
+For more information, please read: http://pytest.org/
 
 Documentation
 =============