~lifeless/testtools/2.4

« back to all changes in this revision

Viewing changes to MANUAL

  • Committer: Jonathan Lange
  • Date: 2009-11-21 19:00:29 UTC
  • mfrom: (27.2.5 result)
  • Revision ID: jml@canonical.com-20091121190029-ohlfzgl4m7zl0m3t
Add a TextTestResult that supports our extended protocol.

 * Author: Robert Collins
 * Reviewer: Jonathan Lange

The TextTestResult object supports the extended protocol that we've
added, but doesn't do real-time output of test progress.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
Note that when you provide multiple errors for a single test, the target sees
136
136
each error as a distinct complete test.
137
137
 
 
138
 
 
139
TextTestResult
 
140
~~~~~~~~~~~~~~
 
141
 
 
142
A TestResult that provides a text UI very similar to the Python standard
 
143
library UI. Key differences are that its supports the extended outcomes and
 
144
details API, and is completely encapsulated into the result object, permitting
 
145
it to be used without a 'TestRunner' object. Not all the Python 2.7 outcomes
 
146
are displayed (yet). It is also a 'quiet' result with no dots or verbose mode.
 
147
These limitations will be corrected soon.
 
148
 
 
149
 
138
150
Extensions to TestSuite
139
151
-----------------------
140
152