-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRunAllTests.py
More file actions
35 lines (29 loc) · 1.88 KB
/
RunAllTests.py
File metadata and controls
35 lines (29 loc) · 1.88 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
32
33
34
35
import unittest
from test.importers.ArnetMinerDataImporterTest import ArnetMinerDataImporterTest
from test.importers.CoMoToDataImporterTest import CoMoToDataImporterTest
from test.importers.DBISDataImporterTest import DBISDataImporterTest
from test.importers.FourAreaDataImporterTest import FourAreaDataImporterTest
from test.model.GraphObjectFactoryTest import GraphObjectFactoryTest
from test.similarity.heterogeneous.PathSimStrategyTest import PathSimStrategyTest
from test.similarity.homogeneous.PageRankStrategyTest import PageRankStrategyTest
from test.util.EdgeBasedMetaPathUtilityTest import EdgeBasedMetaPathUtilityTest
from test.util.SampleGraphUtilityTest import SampleGraphUtilityTest
__author__ = 'jontedesco'
if __name__ == '__main__':
# Data importer tests
importerTestSuite = unittest.TestLoader().loadTestsFromTestCase(CoMoToDataImporterTest)
importerTestSuite.addTests(unittest.TestLoader().loadTestsFromTestCase(ArnetMinerDataImporterTest))
importerTestSuite.addTests(unittest.TestLoader().loadTestsFromTestCase(DBISDataImporterTest))
importerTestSuite.addTests(unittest.TestLoader().loadTestsFromTestCase(FourAreaDataImporterTest))
unittest.TextTestRunner().run(importerTestSuite)
# Model tests
utilityTestSuite = unittest.TestLoader().loadTestsFromTestCase(GraphObjectFactoryTest)
unittest.TextTestRunner().run(utilityTestSuite)
# Strategy tests
strategyTestSuite = unittest.TestLoader().loadTestsFromTestCase(PageRankStrategyTest)
strategyTestSuite.addTests(unittest.TestLoader().loadTestsFromTestCase(PathSimStrategyTest))
unittest.TextTestRunner().run(strategyTestSuite)
# Utility tests
utilityTestSuite = unittest.TestLoader().loadTestsFromTestCase(EdgeBasedMetaPathUtilityTest)
utilityTestSuite.addTests(unittest.TestLoader().loadTestsFromTestCase(SampleGraphUtilityTest))
unittest.TextTestRunner().run(utilityTestSuite)