Stay organized with collections
Save and categorize content based on your preferences.
@Incubating interface KotlinMultiplatformAndroidTestConfiguration
Generic options to configure test configurations for kotlin multiplatform android
Summary
Public properties |
String |
By default, this will be equal to the compilation name specified when enabling the test component prefixed by "android".
|
String? |
Configure the SourceSetTree for test components/sourceset in order to change the default behaviour of source set hierarchies
|
Public properties
defaultSourceSetName
var defaultSourceSetName: String
By default, this will be equal to the compilation name specified when enabling the test component prefixed by "android". (i.e. when the compilation name is "testOnJvm" then the default sourceSet name will be "androidTestOnJvm").
sourceSetTree
var sourceSetTree: String?
Configure the SourceSetTree for test components/sourceset in order to change the default behaviour of source set hierarchies
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# KotlinMultiplatformAndroidTestConfiguration\n===========================================\n\n\n```\n@Incubating interface KotlinMultiplatformAndroidTestConfiguration\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[KotlinMultiplatformAndroidTestOnDeviceConfiguration](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/KotlinMultiplatformAndroidTestOnDeviceConfiguration), [KotlinMultiplatformAndroidTestOnJvmConfiguration](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/KotlinMultiplatformAndroidTestOnJvmConfiguration) \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|\n| [KotlinMultiplatformAndroidTestOnDeviceConfiguration](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/KotlinMultiplatformAndroidTestOnDeviceConfiguration) | Specific options to configure test on device configuration for kotlin multiplatform android |\n| [KotlinMultiplatformAndroidTestOnJvmConfiguration](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/KotlinMultiplatformAndroidTestOnJvmConfiguration) | Specific options to configure jvm test configuration for kotlin multiplatform android |\n\n*** ** * ** ***\n\nGeneric options to configure test configurations for kotlin multiplatform android\n\nSummary\n-------\n\n| ### Public properties ||\n|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [defaultSourceSetName](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/KotlinMultiplatformAndroidTestConfiguration#defaultSourceSetName()) By default, this will be equal to the compilation name specified when enabling the test component prefixed by \"android\". |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [sourceSetTree](/reference/tools/gradle-api/8.2/com/android/build/api/dsl/KotlinMultiplatformAndroidTestConfiguration#sourceSetTree()) Configure the SourceSetTree for test components/sourceset in order to change the default behaviour of source set hierarchies |\n\nPublic properties\n-----------------\n\n### defaultSourceSetName\n\n```\nvar defaultSourceSetName: String\n```\n\nBy default, this will be equal to the compilation name specified when enabling the test component prefixed by \"android\". (i.e. when the compilation name is \"testOnJvm\" then the default sourceSet name will be \"androidTestOnJvm\"). \n\n### sourceSetTree\n\n```\nvar sourceSetTree: String?\n```\n\nConfigure the SourceSetTree for test components/sourceset in order to change the default behaviour of source set hierarchies"]]