This post originated from an RSS feed registered with Python Buzz
by Sidnei da Silva.
Original Post: Testing Zen
Feed Title: awkly.org
Feed URL: http://awkly.org/categories.rdf?category=Python
Feed Description: dreamcatching :: making your dreams come true
Add the following to framework.py``_,justafter``importTesting::
import Zope
Now, you can run the unittests using test.py and all the
facilities that you get from it. As an example, here's what I have in
the makefile of one of my products:
Here, -v is for verbose, -p is for showing progress,
-T is for generating trace module stats. Refer to the source of
test.py for more command line options. The nice thing here, IMHO,
is to be able to specify a regular expression for matching modules
which tests should be run, and of course, the progress line is simply
amazing :)