File: all_tests.py

package info (click to toggle)
libtpclient-py 0.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 444 kB
  • ctags: 849
  • sloc: python: 5,260; makefile: 49
file content (26 lines) | stat: -rw-r--r-- 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
"""Harness to run a bunch of tests."""
import unittest

def suite():
    moduleNames = ['pair',
                   'parser',
                   'pogo',
                   'test_scheme',
                   'test_analyzer',
                   'expressions',
                   'expander',
                   ]

    suite = unittest.TestSuite()
    loader = unittest.defaultTestLoader
    for n in moduleNames:
        testCase = loader.loadTestsFromModule(__import__(n))
        suite.addTest(testCase)
    return suite


if __name__ == '__main__':
    suite = suite()
    runner = unittest.TextTestRunner()
    runner.run(suite)