Package epydoc :: Package test
[hide private]
[frames] | no frames]

Source Code for Package epydoc.test

 1  # epydoc -- Regression testing 
 2  # 
 3  # Copyright (C) 2005 Edward Loper 
 4  # Author: Edward Loper <edloper@loper.org> 
 5  # URL: <http://epydoc.sf.net> 
 6  # 
 7  # $Id: __init__.py 1112 2006-03-22 23:54:25Z dvarrazzo $ 
 8   
 9  """ 
10  Regression testing. 
11  """ 
12  __docformat__ = 'epytext en' 
13   
14  import unittest, doctest, epydoc, os, os.path 
15   
16 -def main():
17 # Options for doctest: 18 options = doctest.ELLIPSIS 19 doctest.set_unittest_reportflags(doctest.REPORT_UDIFF) 20 21 # Find all test cases. 22 tests = [] 23 testdir = os.path.join(os.path.split(__file__)[0]) 24 if testdir == '': testdir = '.' 25 for filename in os.listdir(testdir): 26 if filename.endswith('.doctest'): 27 tests.append(doctest.DocFileSuite(filename, optionflags=options)) 28 29 # Run all test cases. 30 unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(tests))
31 32 if __name__=='__main__': 33 main() 34