PythonUnitTestRunner
public
class
PythonUnitTestRunner
extends Object
implements
IBuildReceiver,
IRemoteTest
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.PythonUnitTestRunner |
此类已废弃。
请改用 PythonBinaryHostTest。
运行使用 unittest 库编写的 Python 测试。
摘要
公共构造函数 | |
|---|---|
PythonUnitTestRunner()
|
|
公共方法 | |
|---|---|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
运行测试并向监听器报告结果。 |
void
|
setBuild(IBuildInfo buildInfo)
|
受保护的方法 | |
|---|---|
void
|
checkPythonVersion(CommandResult c)
|
IBuildInfo
|
getBuild()
返回此调用的 |
IRunUtil
|
getRunUtil()
返回用于运行 unittest 的 |
公共构造函数
PythonUnitTestRunner
public PythonUnitTestRunner ()
公共方法
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试并向监听器报告结果。
| 参数 | |
|---|---|
testInfo |
TestInformation:包含运行测试的实用信息的 TestInformation 对象。 |
listener |
ITestInvocationListener:测试结果的 ITestInvocationListener |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|