
com.pulumi.googlenative.testing.v1.kotlin.outputs.AndroidInstrumentationTestResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.testing.v1.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* A test of an Android application that can control an Android component independently of its normal lifecycle. Android instrumentation tests run an application APK and test APK inside the same process on a virtual or physical AndroidDevice. They also specify a test runner class, such as com.google.GoogleTestRunner, which can vary on the specific instrumentation framework chosen. See for more information on types of Android tests.
* @property appApk The APK for the application under test.
* @property appBundle A multi-apk app bundle for the application under test.
* @property appPackageId The java package for the application under test. The default value is determined by examining the application's manifest.
* @property orchestratorOption The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.1 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator.
* @property shardingOption The option to run tests in multiple shards in parallel.
* @property testApk The APK containing the test code to be executed.
* @property testPackageId The java package for the test to be executed. The default value is determined by examining the application's manifest.
* @property testRunnerClass The InstrumentationTestRunner class. The default value is determined by examining the application's manifest.
* @property testTargets Each target must be fully qualified with the package name or class name, in one of these formats: - "package package_name" - "class package_name.class_name" - "class package_name.class_name#method_name" If empty, all targets in the module will be run.
*/
public data class AndroidInstrumentationTestResponse(
public val appApk: FileReferenceResponse,
public val appBundle: AppBundleResponse,
public val appPackageId: String,
public val orchestratorOption: String,
public val shardingOption: ShardingOptionResponse,
public val testApk: FileReferenceResponse,
public val testPackageId: String,
public val testRunnerClass: String,
public val testTargets: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.testing.v1.outputs.AndroidInstrumentationTestResponse): AndroidInstrumentationTestResponse = AndroidInstrumentationTestResponse(
appApk = javaType.appApk().let({ args0 ->
com.pulumi.googlenative.testing.v1.kotlin.outputs.FileReferenceResponse.Companion.toKotlin(args0)
}),
appBundle = javaType.appBundle().let({ args0 ->
com.pulumi.googlenative.testing.v1.kotlin.outputs.AppBundleResponse.Companion.toKotlin(args0)
}),
appPackageId = javaType.appPackageId(),
orchestratorOption = javaType.orchestratorOption(),
shardingOption = javaType.shardingOption().let({ args0 ->
com.pulumi.googlenative.testing.v1.kotlin.outputs.ShardingOptionResponse.Companion.toKotlin(args0)
}),
testApk = javaType.testApk().let({ args0 ->
com.pulumi.googlenative.testing.v1.kotlin.outputs.FileReferenceResponse.Companion.toKotlin(args0)
}),
testPackageId = javaType.testPackageId(),
testRunnerClass = javaType.testRunnerClass(),
testTargets = javaType.testTargets().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy