PythonUnitTestRunner

public class PythonUnitTestRunner
extends Object implements IBuildReceiver, IRemoteTest

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


This class is deprecated.
Use PythonBinaryHostTest instead.

Runs Python tests written with the unittest library.

Summary

Public constructors

PythonUnitTestRunner()

Public methods

void run(TestInformation testInfo, 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

public PythonUnitTestRunner ()

Public methods

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
testInfo TestInformation: The TestInformation object containing useful information to run tests.

listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setBuild

public void setBuild (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

Protected methods

checkPythonVersion

protected void checkPythonVersion (CommandResult c)

Parameters
c CommandResult

getBuild

protected IBuildInfo getBuild ()

Returns the IBuildInfo for this invocation.

Returns
IBuildInfo

getRunUtil

protected IRunUtil getRunUtil ()

Returns an IRunUtil that runs the unittest

Returns
IRunUtil