Changeset 2882

Show
Ignore:
Timestamp:
03/06/07 10:41:59 (2 years ago)
Author:
nate
Message:

Initial support for coverage.py. We should be able to tell which code we haven't tested so far. Still need to find out what is wrong with the exclude statement so it doesn't count if name == 'main': statements. Good intial start though.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tests/unitTests/masterTestSuite.py

    r2877 r2882  
    88 
    99import unittest 
     10import coverage 
     11import sys 
    1012 
     13coverage.erase() 
     14coverage.start() 
     15 
     16import dabo 
    1117import db 
    1218import biz 
     
    2531allTiersTestSuite = unittest.TestSuite(suiteList) 
    2632unittest.TextTestRunner(verbosity=2).run(allTiersTestSuite) 
     33 
     34coverage.stop() 
     35coverage.report([dabo.dColors, dabo.dObject])