Permalink
Browse files

Adds developer readme about tox and removed old test files no longer …

…needed.
  • Loading branch information...
1 parent 94821e5 commit dc095969fc322ff3e2ab70d6d70962021450c101 @kumar303 kumar303 committed Apr 25, 2011
Showing with 37 additions and 36 deletions.
  1. +33 −0 DEVELOPERS.txt
  2. +2 −1 run_tests.sh
  3. +2 −1 selftest.py
  4. +0 −34 test.sh
View
@@ -0,0 +1,33 @@
+Hello and welcome! Thanks for taking the time to work on Nose.
+
+Run the Test Suite
+==================
+
+Install `tox`_ so that it's accessible on $PATH somehow. The cd into the source and type::
+
+ $ tox
+
+.. _`tox`: http://codespeak.net/tox/
+
+That will try to run tests in all of the Python interpreters that Nose
+supports. If you don't have one of those versions installed please ask for
+assistance so you don't develop an incompatible feature.
+
+For a quick spot check of the tests you can test against a specific version
+like this::
+
+ $ tox -e py26
+
+All Features Must Have Tests
+============================
+
+Well, duh. If you get stuck on this just ask. There are lots of ways to
+make quick regression tests out of nose based suites.
+
+Code Style
+==========
+
+Please follow `PEP8`_ for all contributed code. Specifically, please keep
+the window width to 80 chars and follow the PEP8 formatting style.
+
+.. _`PEP8`: http://www.python.org/dev/peps/pep-0008/
View
@@ -4,5 +4,6 @@ if [ -e "`which tox`" ]; then
tox $@
else
echo "**** install tox globally to test all Pythons at once http://codespeak.net/tox/"
- exec ./selftest.py $@
+ python setup.py egg_info
+ python selftest.py $@
fi
View
@@ -48,7 +48,8 @@
import pkg_resources
env = pkg_resources.Environment(search_path=lib_dirs)
distributions = env["nose"]
- assert len(distributions) == 1
+ assert len(distributions) == 1, (
+ "Incorrect usage of selftest.py; please see DEVELOPERS.txt")
dist = distributions[0]
dist.activate()
except ImportError:
View
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-echo "python 2.3..."
-python2.3 selftest.py
-
-echo
-echo "python 2.4..."
-python2.4 selftest.py
-
-echo
-echo "python 2.5..."
-python2.5 selftest.py
-
-echo
-echo "python 2.6..."
-python2.6 selftest.py
-
-echo
-echo "python 2.7..."
-python2.7 selftest.py
-
-if [ "${JYTHON}x" != "x" ]
-then
- echo
- echo "jython..."
- $JYTHON selftest.py
-else
- echo
- echo '$JYTHON not set'
- echo 'set $JYTHON to run selftest under jython'
- echo 'example: '
- echo " export JYTHON='java -Dpython.home=<path>/dist/ -jar <path>/dist/jython.jar'"
- echo 'see http://wiki.python.org/jython/JythonDeveloperGuide'
-fi

0 comments on commit dc09596

Please sign in to comment.