def run_full_test_suite(): """Run the complete test suite for PyGMO.""" from PyGMO import test from PyGMO.test._hypervolume_tests import get_hv_suite suite = _ut.TestLoader().loadTestsFromModule(test) # Add hypervolume suite explicitly suite.addTests(get_hv_suite()) _ut.TextTestRunner(verbosity=2).run(suite)
def run_full_test_suite(): """Run the complete test suite for PyGMO.""" import sys from PyGMO import test from PyGMO.test._hypervolume_tests import get_hv_suite from PyGMO.test._topology_tests import get_topology_test_suite from PyGMO.test._archipelago_tests import get_archipelago_test_suite suite = _ut.TestLoader().loadTestsFromModule(test) # Add external suites explicitly suite.addTests(get_hv_suite()) suite.addTests(get_topology_test_suite()) suite.addTests(get_archipelago_test_suite()) successful = _ut.TextTestRunner(verbosity=2).run(suite).wasSuccessful() sys.exit(0 if successful else 1)
def run_hv_test_suite(): """Run the hypervolume test suite.""" from PyGMO.test._hypervolume_tests import get_hv_suite _ut.TextTestRunner(verbosity=2).run(get_hv_suite())