Skip to main content

RemoteTestRunner

Run tests and record everything but don't display anything.

Attributes

AttributeTypeDescription
resultclassclass = RemoteTestResultThe class used to instantiate the test result object that records test execution data.

Constructor

Signature

def RemoteTestRunner(
failfast: boolean = False,
resultclass: type = None,
buffer: boolean = False
) - > null

Parameters

NameTypeDescription
failfastboolean = FalseWhether to stop the test run on the first error or failure.
resultclasstype = NoneThe class to use for recording test results; defaults to RemoteTestResult if not provided.
bufferboolean = FalseWhether to buffer stdout and stderr during test execution.

Methods


run()

@classmethod
def run(
test: unittest.TestSuite | unittest.TestCase
) - > [RemoteTestResult](remotetestresult.md?sid=django_test_runner_remotetestresult)

Executes the provided test suite or case and records the outcomes into a result object without displaying output.

Parameters

NameTypeDescription
test`unittest.TestSuiteunittest.TestCase`

Returns

TypeDescription
[RemoteTestResult](remotetestresult.md?sid=django_test_runner_remotetestresult)An object containing the recorded outcomes, errors, and failures from the test execution.