root/galaxy-central/eggs/Cheetah-2.2.2-py2.6-macosx-10.6-universal-ucs2.egg/Cheetah/Tests/Test.py

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

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

行番号 
1#!/usr/bin/env python
2'''
3Core module of Cheetah's Unit-testing framework
4
5TODO
6================================================================================
7# combo tests
8# negative test cases for expected exceptions
9# black-box vs clear-box testing
10# do some tests that run the Template for long enough to check that the refresh code works
11'''
12
13import sys
14import unittest
15
16import SyntaxAndOutput
17import NameMapper
18import Filters
19import Template
20import Cheps
21import Regressions
22import Unicode
23import CheetahWrapper
24
25SyntaxAndOutput.install_eols()
26
27suites = [
28   unittest.findTestCases(SyntaxAndOutput),
29   unittest.findTestCases(NameMapper),
30   unittest.findTestCases(Filters),
31   unittest.findTestCases(Template),
32   #unittest.findTestCases(Cheps),
33   unittest.findTestCases(Regressions),
34   unittest.findTestCases(Unicode),
35]
36
37if not sys.platform.startswith('java'):
38    suites.append(unittest.findTestCases(CheetahWrapper))
39
40if __name__ == '__main__':
41    runner = unittest.TextTestRunner()
42    if 'xml' in sys.argv:
43        import xmlrunner
44        runner = xmlrunner.XMLTestRunner(filename='Cheetah-Tests.xml')
45   
46    results = runner.run(unittest.TestSuite(suites))
47
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。