RemoteTestRunner
Run tests and record everything but don't display anything.
Attributes
| Attribute | Type | Description |
|---|---|---|
| resultclass | class = RemoteTestResult | The 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
| Name | Type | Description |
|---|---|---|
| failfast | boolean = False | Whether to stop the test run on the first error or failure. |
| resultclass | type = None | The class to use for recording test results; defaults to RemoteTestResult if not provided. |
| buffer | boolean = False | Whether 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
| Name | Type | Description |
|---|---|---|
| test | `unittest.TestSuite | unittest.TestCase` |
Returns
| Type | Description |
|---|---|
[RemoteTestResult](remotetestresult.md?sid=django_test_runner_remotetestresult) | An object containing the recorded outcomes, errors, and failures from the test execution. |