Пример #1
0
import core_wrapper_features_unittest
import core_geometry_unittest
import core_tesselator_unittest
import core_extend_topology_unittest
import core_webgl_unittest
import core_extend_dataexchange_unittest
import core_extend_shapefactory_unittest
import core_ocaf_unittest
import core_meshdatasource_unittest

suite = unittest.TestSuite()

# Get all test suites from modules
suite1 = core_wrapper_features_unittest.suite()
suite2 = core_geometry_unittest.suite()
suite3 = core_tesselator_unittest.suite()
suite4 = core_ocaf_unittest.suite()
suite5 = core_webgl_unittest.suite()
suite6 = core_extend_topology_unittest.suite()
suite7 = core_extend_dataexchange_unittest.suite()
suite8 = core_extend_shapefactory_unittest.suite()
suite9 = core_meshdatasource_unittest.suite()
# Add test cases
tests = [
    suite1, suite2, suite3, suite4, suite5, suite6, suite7, suite8, suite9
]
suite.addTests(tests)

# Run test suite
result = unittest.TextTestRunner(verbosity=2).run(suite)
Пример #2
0
    import core_ocaf_unittest
    HAVE_OCAF = True
except:
    HAVE_OCAF = False
# Create test suite
import core_webgl_unittest
try:
    import core_smesh_unittest
    HAVE_SMESH = True
except:
    HAVE_SMESH = False
suite = unittest.TestSuite()

# Get all test suites from modules
suite1 = core_wrapper_features_unittest.suite()
suite2 = core_geometry_unittest.suite()
suite3 = core_visualization_unittest.suite()
tests = [suite1, suite2, suite3]
if HAVE_OCAF:
    suite4 = core_ocaf_unittest.suite()
    tests.append(suite4)
suite5 = core_webgl_unittest.suite()
tests.append(suite5)
if HAVE_SMESH:
    suite6 = core_smesh_unittest.suite()
    tests.append(suite6)
# Add test cases
suite.addTests(tests)

# Run test suite
unittest.TextTestRunner(verbosity=2).run(suite)