Skip to content

Commit

Permalink
test: fix missing actual implementation for AndroidUnitTest
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorhugods committed Jan 15, 2025
1 parent 5f1dbfd commit 8c2873d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions backup/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ kotlin {
generateTypeScriptDefinitions()
}
sourceSets {
val androidUnitTest by getting { }
remove(androidUnitTest) // Android Unit tests are removed, as we run Instrumentation tests for encryption/file manipulation, etc.
all {
languageSettings.optIn("kotlin.ExperimentalUnsignedTypes")
languageSettings.optIn("kotlin.experimental.ExperimentalObjCRefinement")
Expand Down Expand Up @@ -99,6 +97,11 @@ kotlin {
val androidInstrumentedTest by getting {
dependsOn(nonJsTest)
}
val androidUnitTest by getting {
// Although UNIT tests for Android are disabled (only run Instrumented), we need to add this in order to resolve
// expect/actual definitions during test compilation fase ...
dependsOn(nonJsTest)
}
val jvmMain by getting {
dependsOn(nonJsMain)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class BackupEndToEndTest {
}
}

expect fun endToEndTestSubjectProvider() : CommonBackupEndToEndTestSubjectProvider
expect fun endToEndTestSubjectProvider(): CommonBackupEndToEndTestSubjectProvider

interface CommonBackupEndToEndTestSubjectProvider {
fun setup() {}
Expand Down

0 comments on commit 8c2873d

Please sign in to comment.