MCPcopy Index your code
hub / github.com/RustPython/RustPython / runTests

Function runTests

Lib/test/test_unittest/test_runner.py:33–47  ·  view source on GitHub ↗
(*cases)

Source from the content-addressed store, hash-verified

31
32
33def runTests(*cases):
34 suite = unittest.TestSuite()
35 for case in cases:
36 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case)
37 suite.addTests(tests)
38
39 runner = getRunner()
40
41 # creating a nested suite exposes some potential bugs
42 realSuite = unittest.TestSuite()
43 realSuite.addTest(suite)
44 # adding empty suites to the end exposes potential bugs
45 suite.addTest(unittest.TestSuite())
46 realSuite.addTest(unittest.TestSuite())
47 return runner.run(realSuite)
48
49
50def cleanup(ordering, blowUp=False):

Calls 5

getRunnerFunction · 0.85
loadTestsFromTestCaseMethod · 0.80
addTestsMethod · 0.80
addTestMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected