run¶
-
lsst.utils.tests.run(suite, exit=True)[source]¶ Run a test suite and report the test return status to caller or shell.
Note
Deprecated in 13_0 Use
unittest.main()instead, which automatically detects all tests in a test case and does not require a test suite.Parameters: suite :
unittest.TestSuiteTest suite to run.
exit :
bool, optionalIf
True, Python process will exit with the test exit status.Returns: status :
intIf
exitisFalse, will return 0 if the tests passed, or 1 if the tests failed.