-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathallTests.py
More file actions
31 lines (24 loc) · 1.08 KB
/
allTests.py
File metadata and controls
31 lines (24 loc) · 1.08 KB
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
#!/usr/bin/env python3
#Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com)
#
#Released under the MIT license, see LICENSE.txt
import unittest
from sonLib.bioio import parseSuiteTestOptions
from matchingAndOrdering.externalTools.matchGraph.matchGraphTest import TestCase as matchGraphTest
from matchingAndOrdering.externalTools.blossom.blossomTest import TestCase as blossomTest
from matchingAndOrdering.tests.cTests import TestCase as cTests
from matchingAndOrdering.tests.simulatedGenomeTests import TestCase as simulatedGenomeTests
def allSuites():
return unittest.TestSuite((unittest.makeSuite(matchGraphTest, 'test'),
unittest.makeSuite(blossomTest, 'test'),
unittest.makeSuite(cTests, 'test'),
unittest.makeSuite(simulatedGenomeTests, 'test')))
def main():
parseSuiteTestOptions()
suite = allSuites()
runner = unittest.TextTestRunner()
i = runner.run(suite)
return len(i.failures) + len(i.errors)
if __name__ == '__main__':
import sys
sys.exit(main())