Skip to content

Commit d27cef8

Browse files
authored
Add sync service tests (#80)
1 parent 4777e4c commit d27cef8

3 files changed

Lines changed: 492 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v5
1212

1313
- name: set up JDK 17
14-
uses: actions/setup-java@v4
14+
uses: actions/setup-java@v5
1515
with:
1616
java-version: '17'
1717
distribution: 'temurin'
@@ -24,14 +24,14 @@ jobs:
2424
run: ./gradlew testFreeVersionDebugUnitTest jacocoTestReport --continue
2525

2626
- name: Upload Coverage Report
27-
uses: actions/upload-artifact@v4
27+
uses: actions/upload-artifact@v7
2828
if: always()
2929
with:
3030
name: coverage-report
3131
path: app/build/reports/jacoco/jacocoTestReport/html/
3232

3333
- name: Upload Test Results
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@v7
3535
if: always()
3636
with:
3737
name: test-results

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ dependencies {
9595
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0'
9696
testImplementation 'junit:junit:4.13.2'
9797
testImplementation 'net.sf.kxml:kxml2:2.3.0'
98+
testImplementation 'org.mockito:mockito-core:5.15.2'
99+
testImplementation 'org.mockito.kotlin:mockito-kotlin:5.4.0'
100+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1'
98101
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
99102
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
100103
androidTestImplementation platform('androidx.compose:compose-bom:2025.12.00')

0 commit comments

Comments
 (0)