forked from ComparativeGenomicsToolkit/hal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathallTests.py
30 lines (23 loc) · 840 Bytes
/
allTests.py
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
#!/usr/bin/env python
#Copyright (C) 2012 by Glenn Hickey ([email protected])
#
#Released under the MIT license, see LICENSE.txtimport unittest
import unittest
import sys
import os
from hal.api.apiTest import TestCase as apiTest
from hal.maf.mafTest import TestCase as mafTest
from hal.chain.chainTest import TestCase as chainTest
def allSuites():
allTests = unittest.TestSuite((unittest.makeSuite(apiTest, 'test'),
unittest.makeSuite(mafTest, 'test'),
unittest.makeSuite(chainTest, 'test')))
return allTests
def main():
suite = allSuites()
runner = unittest.TextTestRunner()
i = runner.run(suite)
return len(i.failures) + len(i.errors)
if __name__ == '__main__':
import sys
sys.exit(main())