root/galaxy-central/eggs/GeneTrack-2.0.0_beta_1_dev_48da9e998f0caf01c5be731e926f4b0481f658f0-py2.6.egg/tests/doc_tests.py

リビジョン 3, 0.9 KB (コミッタ: kohda, 14 年 前)

Install Unix tools  http://hannonlab.cshl.edu/galaxy_unix_tools/galaxy.html

行番号 
1""""
2This script runs the doctests
3"""
4import testlib
5import os, unittest, doctest
6from genetrack import data, hdflib
7
8def codetest():
9    "Test the code here before adding to doctest"
10    pass
11
12def get_suite():
13    suite = unittest.TestSuite()
14   
15    file_names = [
16       
17    ]
18
19    module_names = [
20        data, hdflib
21    ]
22
23    # needs relative paths for some reason
24    full_path = lambda name: os.path.join( '../docs/rest', name)
25    file_paths = map( full_path, file_names)
26
27    for file_path in file_paths:
28        rest_suite = doctest.DocFileSuite( file_path )
29        suite.addTest( rest_suite )
30
31    for mod in module_names:
32        docsuite = doctest.DocTestSuite( mod )
33        suite.addTest( docsuite )
34
35    return suite
36
37if __name__ == '__main__':
38    #codetest()
39    suite  = get_suite()
40    runner = unittest.TextTestRunner(verbosity=2)
41    runner.run(suite)
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。