[pypy-svn] rev 1002 - pypy/trunk/doc/devel

anna at codespeak.net anna at codespeak.net
Mon Jun 23 16:49:36 CEST 2003


Author: anna
Date: Mon Jun 23 16:49:35 2003
New Revision: 1002

Added:
   pypy/trunk/doc/devel/testdesign.txt
Log:
formatted test-design from wiki page in reST

Added: pypy/trunk/doc/devel/testdesign.txt
==============================================================================
--- (empty file)
+++ pypy/trunk/doc/devel/testdesign.txt	Mon Jun 23 16:49:35 2003
@@ -0,0 +1,34 @@
+=============
+Test Design
+=============
+
+Our tests are based on the unittest framework. Tests for modules usually reside in a subdirectory called "test".
+
+If you write a test, then you usually have the following lines at the start of your test::
+
+ import autopath
+ from pypy.tool import test
+
+For the time being, please refer to a pypy-dev mail_ for more info.
+
+
+Command line tool test_all
+---------------------------
+
+PyPy's current testing framework (since revision 831) is driven by the command line src/pypy/test_all.py tool. Simply change to the pypy root directory and issue::
+
+
+  python test_all.py
+
+
+which will run all tests against the Trivial Object Space. If you want to test against the StandardObjectSpace then issue::
+
+
+  python test_all.py -S
+
+
+For more switches invoke "python test_all.py -h".
+
+-----------------------------------------------------------------------------------------------
+
+.. _mail: http://codespeak.net/pipermail/pypy-dev/2003q2/000789.html


More information about the Pypy-commit mailing list