kotest-common-enums
Common Kotest factory utilities for androidx-ktx-extras' modules.
Note: This module is currently a JVM-only module, and there are currently no plans to add Kotlin Multiplatform support.
Usage
Kotest Common Enums is available on Maven Central as the Maven coordinate io.github.edricchan03.androidx.common:kotest-common-enums
:
settings.gradle.kts
dependencyResolutionManagement {
// ...
repositories {
mavenCentral()
}
}
Content copied to clipboard
Kotlin/Groovy
build.gradle.kts
testImplementation("io.github.edricchan03.androidx.common:kotest-common-enums:0.1.0")
Content copied to clipboard
TOML
gradle/libs.versions.toml
:
[libraries]
androidxtra-common-enums-kotest = "io.github.edricchan03.androidx.common:kotest-common-enums:0.1.0"
Content copied to clipboard
build.gradle.kts
:
testImplementation(libs.androidxtra.common.enums.kotest)
Content copied to clipboard
Snapshots
Alternatively, you can grab the latest built snapshot from Maven Central's snapshots repository:
settings.gradle.kts
dependencyResolutionManagement {
// ...
repositories {
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
// Optionally, you can specify that only snapshots are to be used
mavenContent {
snapshotsOnly()
}
}
}
}
Content copied to clipboard
Kotlin
build.gradle.kts
:
implementation("io.github.edricchan03.androidx.common:kotest-common-enums:0.1.1-SNAPSHOT")
Content copied to clipboard
TOML
gradle/libs.versions.toml
:
[libaries]
androidxtra-common-enums-kotest = "io.github.edricchan03.androidx.common:kotest-common-enums:0.1.1-SNAPSHOT"
Content copied to clipboard
build.gradle.kts
:
implementation(libs.androidxtra.common.enums.kotest)
Content copied to clipboard
Packages
Link copied to clipboard
Kotest property functions for testing enums that represent an internal value. An example is as shown below: