Skip to content

Commit

Permalink
move test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Nov 9, 2023
1 parent 0dbcff2 commit 09c255d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Job set up
uses: ./.github/actions/job-set-up

- run: ./gradlew clean testDebug -p NoiseCaptureAndroid/
- run: ./gradlew clean testDebug -p NoiseCapture/

iOS:
# if: ${{ inputs.shouldRunKmp == 'true' || inputs.shouldRunIos == 'true' }}
Expand Down
3 changes: 3 additions & 0 deletions NoiseCapture/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ kotlin {
@OptIn(ExperimentalComposeLibrary::class)
implementation(compose.components.resources)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.noise_planet.noisecapture

import Greeting
import kotlin.test.Test
import kotlin.test.assertTrue

class CommonGreetingTest {

@Test
fun testExample() {
assertTrue(Greeting().greet().contains("Hello"), "Check 'Hello' is mentioned")
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ compose = "1.5.4"
compose-plugin = "1.5.10"
compose-compiler = "1.5.4"
agp = "8.1.3"
android-minSdk = "24"
android-minSdk = "23"
android-compileSdk = "34"
android-targetSdk = "34"
androidx-activityCompose = "1.8.0"
Expand Down

0 comments on commit 09c255d

Please sign in to comment.