public abstract class AbstractInstrumentationMojo extends AbstractAndroidMojo
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
testAnnotations
Whether to execute tests which are annotated with the given annotations.
|
protected List<String> |
testClasses
Whether to execute test classes which are specified as part of the instrumentation tests.
|
protected List<String> |
testExcludeAnnotations
Whether to execute tests which are not annotated with the given annotations.
|
protected List<String> |
testInstrumentationArgs
Extra instrumentation arguments.
|
protected List<String> |
testPackages
Whether to execute tests only in given packages as part of the instrumentation tests.
|
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 |
|---|
AbstractInstrumentationMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
buildCommaSeparatedString(List<String> lines)
Helper method to build a comma separated string from a list.
|
protected void |
instrument() |
protected boolean |
isEnableIntegrationTest()
Whether or not to execute integration test related goals.
|
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, waitForInitialDeviceListgetLog, getPluginContext, setLog, setPluginContext@Parameter(property="android.test.packages") protected List<String> testPackages
Whether to execute tests only in given packages as part of the instrumentation tests.
<packages>
<package>your.package.name</package>
</packages>
or as e.g. -Dandroid.test.packages=package1,package2@Parameter(property="android.test.classes") protected List<String> testClasses
Whether to execute test classes which are specified as part of the instrumentation tests.
<classes>
<class>your.package.name.YourTestClass</class>
</classes>
or as e.g. -Dandroid.test.classes=class1,class2@Parameter(property="android.test.annotations") protected List<String> testAnnotations
Whether to execute tests which are annotated with the given annotations.
<annotations>
<annotation>your.package.name.YourAnnotation</annotation>
</annotations>
or as e.g. -Dandroid.test.annotations=annotation1,annotation2@Parameter(property="android.test.excludeAnnotations") protected List<String> testExcludeAnnotations
Whether to execute tests which are not annotated with the given annotations.
<excludeAnnotations>
<excludeAnnotation>your.package.name.YourAnnotation</excludeAnnotation>
</excludeAnnotations>
or as e.g. -Dandroid.test.excludeAnnotations=annotation1,annotation2@Parameter(property="android.test.instrumentationArgs") protected List<String> testInstrumentationArgs
Extra instrumentation arguments.
<instrumentationArgs>
<instrumentationArg>key value</instrumentationArg>
<instrumentationArg>key 'value with spaces'</instrumentationArg>
</instrumentationArgs>
or as e.g. -Dandroid.test.instrumentationArgs="key1 value1","key2 'value with spaces'"protected void instrument()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected boolean isEnableIntegrationTest()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
enableIntegrationTest, but can be overridden with -Dmaven.test.skip.true if integration test goals should be executed, false otherwise.org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2008–2019 simpligility technologies inc.. All rights reserved.