Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- name: Execute lint check
run: ./gradlew ktlintCheck --no-configuration-cache
run: ./gradlew ktlintCheck --rerun-tasks
unit-test:
name: Unit test
runs-on: ubuntu-latest
Expand All @@ -36,13 +36,10 @@ jobs:
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- name: Execute unit tests
run: ./gradlew jvmTest # jvmTest + testUnitTest = allTest (so execute separately)
run: ./gradlew jvmTest --rerun-tasks
ui-unit-test:
name: Ui unit test on android
runs-on: ubuntu-latest
strategy:
matrix:
app: [ weather ]
steps:
- name: Check out code
uses: actions/checkout@v5
Expand All @@ -52,8 +49,8 @@ jobs:
distribution: temurin
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- name: Execute ui tests for ${{ matrix.app }}
run: ./gradlew :${{ matrix.app }}:androidApp:testStagingDebugUnitTest
- name: Execute ui tests
run: ./gradlew testAndroidHost --rerun-tasks
integration-test:
name: Integration test on android
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ktor = "3.4.0"
buildkonfig = "0.17.1"
datastore = "1.2.0"
okio = "3.16.4"
mokkery = "3.1.1"
mokkery = "3.2.0"
robolectiric = "4.16.1"
kotlin-inject = "0.9.0"
coil = "3.3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal class ForecastNextDaysScreenTest : AbstractAndroidUnitTest() {
.assertIsDisplayed()

onAllNodesWithText("32 °C", useUnmergedTree = true)
.assertCountEquals(6)
.assertCountEquals(7)
}
}

Expand Down