@Mojo(name="monkeyrunner") public class MonkeyRunnerMojo extends AbstractAndroidMojo
aaptExtraArgs, aaptVerbose, adbConnectionTimeout, androidManifestFile, assetsDirectory, attachJar, attachSources, combinedAssets, configurations, customPackage, dependencyGraphBuilder, destinationManifestFile, device, devices, deviceThreads, ENV_ANDROID_HOME, ENV_ANDROID_NDK_HOME, execution, extractedDependenciesDirectory, extractedDependenciesJavaResources, extractedDependenciesJavaSources, finalName, genDirectory, generateApk, ips, nativeLibrariesDirectory, ndkOutputDirectory, proguardFile, project, projectHelper, projectOutputDirectory, release, renameManifestPackage, resourceDirectory, resourceOverlayDirectories, resourceOverlayDirectory, resources, session, sourceDirectory, sourceEncoding, SUPPORTED_PACKAGING_TYPES, targetDirectory, undeployBeforeDeploy
Constructor and Description |
---|
MonkeyRunnerMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
String[] |
getPlugins() |
List<Program> |
getPrograms() |
protected boolean |
isEnableIntegrationTest()
Whether or not tests are enabled.
|
protected boolean |
isIgnoreTestFailures()
Whether or not test failures should be ignored.
|
protected void |
run(com.android.ddmlib.IDevice device,
com.android.ddmlib.testrunner.ITestRunListener... iTestRunListeners)
Actually plays tests.
|
copyFolder, deployApk, deployBuiltApk, deployDependencies, doWithDevices, extractInstrumentationRunnerFromAndroidManifest, extractPackageNameFromAndroidArtifact, extractPackageNameFromAndroidManifest, extractPackageNameFromAndroidManifestXmlTree, extractPackageNameFromApk, getAndroidManifestPackageName, getAndroidNdk, getAndroidSdk, getArtifactResolverHelper, getDependencyResolver, getDirectDependencyArtifacts, getJack, getLibraryUnpackDirectory, getNativeHelper, getRelevantCompileArtifacts, getResourceOverlayDirectories, getTransitiveDependencyArtifacts, getTransitiveDependencyArtifacts, getUnpackedAarClassesJar, getUnpackedApkLibSourceFolder, getUnpackedLibAssetsFolder, getUnpackedLibFolder, getUnpackedLibHelper, getUnpackedLibNativesFolder, getUnpackedLibResourceFolder, getUnpackedLibsDirectory, initAndroidDebugBridge, isAPKBuild, isInstrumentationTest, resolveArtifactToFile, undeployApk, undeployApk, waitForInitialDeviceList
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected boolean isEnableIntegrationTest()
protected boolean isIgnoreTestFailures()
protected void run(com.android.ddmlib.IDevice device, com.android.ddmlib.testrunner.ITestRunListener... iTestRunListeners) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
device
- the device on which tests are going to be executed.iTestRunListeners
- test run listeners.org.apache.maven.plugin.MojoExecutionException
- if exercising app threw an exception and isIgnoreTestFailures is false..org.apache.maven.plugin.MojoFailureException
- if exercising app failed and isIgnoreTestFailures is false.public String[] getPlugins()
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.