[Proctor-checkins] CVS: Proctor/proctorlib runner.py,1.12,1.13
Status: Alpha
Brought to you by:
doughellmann
|
From: Doug H. <dou...@us...> - 2006-05-01 12:48:34
|
Update of /cvsroot/proctor/Proctor/proctorlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1709 Modified Files: runner.py Log Message: Include test name in error and failure reporting Index: runner.py =================================================================== RCS file: /cvsroot/proctor/Proctor/proctorlib/runner.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** runner.py 17 Apr 2005 13:50:42 -0000 1.12 --- runner.py 1 May 2006 12:48:08 -0000 1.13 *************** *** 239,243 **** trace.into('TestResult', 'addError', test=test, err=err) unittest.TestResult.addError(self, test, err) ! print 'ERROR' print self._exc_info_to_string(err, test) sys.stdout.flush() --- 239,243 ---- trace.into('TestResult', 'addError', test=test, err=err) unittest.TestResult.addError(self, test, err) ! print 'ERROR in', test.id() print self._exc_info_to_string(err, test) sys.stdout.flush() *************** *** 248,252 **** trace.into('TestResult', 'addFailure', test=test, err=err) unittest.TestResult.addFailure(self, test, err) ! print 'FAIL' print self._exc_info_to_string(err, test) print --- 248,252 ---- trace.into('TestResult', 'addFailure', test=test, err=err) unittest.TestResult.addFailure(self, test, err) ! print 'FAIL in', test.id() print self._exc_info_to_string(err, test) print *************** *** 334,338 **** self._outputSeparator('Start results') ! print 'ERROR' self._outputSeparator('End results') sys.stdout.flush() --- 334,338 ---- self._outputSeparator('Start results') ! print 'ERROR in', test.id() self._outputSeparator('End results') sys.stdout.flush() *************** *** 345,349 **** self._outputSeparator('Start results') ! print 'FAIL' self._outputSeparator('End results') sys.stdout.flush() --- 345,349 ---- self._outputSeparator('Start results') ! print 'FAIL in', test.id() self._outputSeparator('End results') sys.stdout.flush() |