summaryrefslogtreecommitdiff
path: root/test/alltests.py
blob: b266ebcb138383b3fa7eadf3f0d78207dd0a1eb7 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import testbase
import unittest

testbase.echo = False

#test

def suite():
    modules_to_test = (
        # core utilities
        'historyarray', 
        'attributes', 
        'dependency',
        
        # connectivity, execution
        'pool', 
        'engine',
        
        # schema/tables
        'reflection', 
        'testtypes',
        'indexes',

        # SQL syntax
        'select',
        'selectable',
        
        # assorted round-trip tests
        'query',
        
        # defaults, sequences (postgres/oracle)
        'defaults',
        
        # ORM selecting
        'mapper',
        'selectresults',
        'eagertest1',
        'eagertest2',
        
        # ORM persistence
        'objectstore',
        
        # cyclical ORM persistence
        'cycles',
        
        # more select/persistence, backrefs
        'manytomany',
        'onetoone',
        'inheritance',
        
        # extensions
        'proxy_engine',
        #'wsgi_test',
        
        )
    alltests = unittest.TestSuite()
    for module in map(__import__, modules_to_test):
        alltests.addTest(unittest.findTestCases(module, suiteClass=None))
    return alltests

import sys
sys.stdout = sys.stderr

if __name__ == '__main__':
    testbase.runTests(suite())