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 |
IRunUtil
|
getRunUtil()
Returns an |
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 |
Protected methods
getBuild
protected IBuildInfo getBuild ()
Returns the IBuildInfo
for this invocation.
Returns | |
---|---|
IBuildInfo |