[Proctor-checkins] CVS: Proctor/proctorlib cui.py,1.14,1.15
Status: Alpha
Brought to you by:
doughellmann
|
From: Doug H. <dou...@us...> - 2002-12-05 17:16:39
|
Update of /cvsroot/proctor/Proctor/proctorlib
In directory sc8-pr-cvs1:/tmp/cvs-serv8216
Modified Files:
cui.py
Log Message:
Include a counter with each test name to indicate how far into the set we are as the tests go by.
Index: cui.py
===================================================================
RCS file: /cvsroot/proctor/Proctor/proctorlib/cui.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** cui.py 4 Dec 2002 13:15:00 -0000 1.14
--- cui.py 5 Dec 2002 17:16:36 -0000 1.15
***************
*** 145,149 ****
print
print '*** begin test'
! print desc, '...',
trace.outof()
return
--- 145,157 ----
print
print '*** begin test'
!
! self.num_tests_run += 1
!
! progress_line = '%3d/%3d %s ...' % (self.num_tests_run,
! self.num_tests,
! desc,
! )
!
! print progress_line,
trace.outof()
return
***************
*** 196,200 ****
test_runner = unittest.TextTestRunner(descriptions=0,
verbosity=verbosity)
!
result = test_runner.run(test_suite)
--- 204,214 ----
test_runner = unittest.TextTestRunner(descriptions=0,
verbosity=verbosity)
!
! #
! # Set up progress management info.
! #
! self.num_tests = test_suite.countTestCases()
! self.num_tests_run = 0
!
result = test_runner.run(test_suite)
***************
*** 225,228 ****
--- 239,244 ----
if failed:
failures = "failures=%d" % failed
+ else:
+ failures = ''
if errored:
***************
*** 231,234 ****
--- 247,252 ----
else:
errors = "errors=%d" % errored
+ else:
+ errors = ''
print "FAILED (%s%s)" % (failures, errors)
|