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.TestSuite
Test suite to run.
exit :
bool
, optionalIf
True
, Python process will exit with the test exit status.Returns: status :
int
If
exit
isFalse
, will return 0 if the tests passed, or 1 if the tests failed.