라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.
# matlab.unittest.TestRunner class

## Description

## Construction

## Properties

## Methods

## See Also

#### Introduced in R2013a

**Package: **matlab.unittest

Class for running tests in `matlab.unittest`

framework

The `matlab.unittest.TestRunner`

class is the fundamental
API used to run a suite of tests in the `matlab.unittest`

framework.
It runs and operates on `TestSuite`

arrays. Use this
class to customize running tests.

The `TestRunner`

class is a sealed class; you cannot
derive classes from the `TestRunner`

class.

To create a simple, silent `TestRunner`

object,
call the static `withNoPlugins`

method.

runner = matlab.unittest.TestRunner.withNoPlugins

To create a `TestRunner`

object to run tests from
the MATLAB^{®} Command Window, call the static `withTextOutput`

method.

runner = matlab.unittest.TestRunner.withTextOutput

To create a customized `TestRunner`

object, call
the `addPlugin`

method.

runner = TestRunner.withNoPlugins; runner.addPlugin(SomePlugin())

addPlugin | Add plugin to `TestRunner` object |

run | Run all tests in `TestSuite` array |

runInParallel | Run all tests in `TestSuite` array in
parallel |

withNoPlugins | Create simplest runner possible |

withTextOutput | Create `TestRunner` object for command
window output |

Was this topic helpful?