PythonUnitTestRunner

public class PythonUnitTestRunner
extends Object implements IRemoteTest, IBuildReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.PythonUnitTestRunner


Runs Python tests written with the unittest library.

Summary

Public constructors

PythonUnitTestRunner()

Public methods

void run(ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setBuild(IBuildInfo buildInfo)

Protected methods

void checkPythonVersion(CommandResult c)
IBuildInfo getBuild()

Returns the IBuildInfo for this invocation.

IRunUtil getRunUtil()

Returns an IRunUtil that runs the unittest

Public constructors

PythonUnitTestRunner

PythonUnitTestRunner ()

Public methods

run

void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setBuild

void setBuild (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

Protected methods

checkPythonVersion

void checkPythonVersion (CommandResult c)

Parameters
c CommandResult

getBuild

IBuildInfo getBuild ()

Returns the IBuildInfo for this invocation.

Returns
IBuildInfo

getRunUtil

IRunUtil getRunUtil ()

Returns an IRunUtil that runs the unittest

Returns
IRunUtil