Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 660

Show
Ignore:
Timestamp:
09/16/05 13:13:44
Author:
fumanchu
Message:

Some comments on test suite design and usage.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/helper.py

    r639 r660  
    2626OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    2727""" 
     28 
     29# This is a library of helper functions for the CherryPy test suite. 
     30# The actual script that runs the entire CP test suite is called 
     31# "test.py" (in this folder); test.py calls this module as a library. 
     32#  
     33# GREAT CARE has been taken to separate this module from test.py, 
     34# because different consumers of each have mutually-exclusive import 
     35# requirements. So don't go moving functions from here into test.py, 
     36# or vice-versa, unless you *really* know what you're doing. 
     37#  
     38# Usage: 
     39#   Each individual test_*.py module imports this module (helper), 
     40#   usually to make an instance of CPWebCase, and then call testmain(). 
     41#    
     42#   The CP test suite script (test.py) imports this module and calls 
     43#   run_test_suite, possibly more than once. CP applications may also 
     44#   import test.py (to use TestHarness), which then calls helper.py. 
     45 
    2846 
    2947import os, os.path 
  • trunk/cherrypy/test/test.py

    r643 r660  
    2626OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    2727""" 
     28 
     29# This is the actual script that runs the entire CP test suite. 
     30# There is a library of helper functions for the CherryPy test suite, 
     31# called "helper.py" (in this folder); this module calls that as a library. 
     32#  
     33# GREAT CARE has been taken to separate this module from helper.py, 
     34# because different consumers of each have mutually-exclusive import 
     35# requirements. So don't go moving functions from here into helper.py, 
     36# or vice-versa, unless you *really* know what you're doing. 
     37 
    2838 
    2939import sys 

Hosted by WebFaction

Log in as guest/cpguest to create tickets