[#606] Fix: Incorrect imports in HomeScreenTest and MockUtil in Sample Compose androidTest#607
Conversation
📝 WalkthroughWalkthroughThis PR updates test dependencies, version catalog entries, fixes import paths to reflect package restructuring, and removes experimental Kotlin Coroutines API annotations from test files. Additionally, packaging configuration is updated with resource merges for license files. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
e4bc1db to
ce96d87
Compare
0553ea8 to
55e73e6
Compare
Kover report for template-compose:🧛 Template - Compose Unit Tests Code Coverage:
|
| File | Coverage |
|---|
Modified Files Not Found In Coverage Report:
HomeScreenTest.kt
HomeScreenTest.kt
IsFirstTimeLaunchPreferencesUseCaseTest.kt
MockUtil.kt
UpdateFirstTimeLaunchPreferencesUseCaseTest.kt
build.gradle.kts
libs.versions.toml
libs.versions.toml
Codebase cunningly covered by count Shroud 🧛
Generated by 🚫 Danger
There was a problem hiding this comment.
Pull Request Overview
This PR fixes incorrect import paths in HomeScreenTest and MockUtil and updates dependency versions/configurations to resolve test failures and ensure proper UI test setup.
- Corrects import paths for use cases in androidTest.
- Updates dependency versions including mockk, test rules, and test-compose-ui.
- Adjusts packaging configuration for merging license files.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| sample-compose/gradle/libs.versions.toml | Upgraded dependency versions and added test-mockk-android and test-compose-ui-manifest entries. |
| sample-compose/domain/src/test/java/co/nimblehq/sample/compose/domain/usecases/UpdateFirstTimeLaunchPreferencesUseCaseTest.kt | Removed unused experimental coroutine and assert imports. |
| sample-compose/domain/src/test/java/co/nimblehq/sample/compose/domain/usecases/IsFirstTimeLaunchPreferencesUseCaseTest.kt | Removed unused experimental coroutine and assert imports. |
| sample-compose/app/src/test/java/co/nimblehq/sample/compose/ui/screens/main/home/HomeScreenTest.kt | Removed redundant testing imports. |
| sample-compose/app/src/androidTest/java/co/nimblehq/sample/compose/ui/screens/main/home/HomeScreenTest.kt | Updated usecase import paths to the correct package. |
| sample-compose/app/src/androidTest/java/co/nimblehq/sample/compose/test/MockUtil.kt | Corrected import path from domain.model.Model to domain.models.Model. |
| sample-compose/app/build.gradle.kts | Modified packaging block and updated testing dependency configurations to align with UI test requirements. |
There was a problem hiding this comment.
These tests fail to run on my end, not sure if it's an existing issue though 🤔
There was a problem hiding this comment.
@ryan-conway It passed on my side. Not sure if anyone failed to run 🙏
Screen.Recording.mp4
There was a problem hiding this comment.
eeeeaa
left a comment
There was a problem hiding this comment.
Test passed, aside from existing comments, LGTM
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@sample-compose/gradle/libs.versions.toml`:
- Line 35: Update the testRules version entry in libs.versions.toml: replace the
current testRules = "1.7.0-alpha01" value with the stable release testRules =
"1.7.0" so the project uses androidx.test:rules 1.7.0 instead of the alpha
build.
| security = "1.0.0" | ||
| testCore = "1.6.1" | ||
| testRules = "1.6.1" | ||
| testRules = "1.7.0-alpha01" |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
androidx.test:rules 1.7.0 stable release date
💡 Result:
androidx.test:rules 1.7.0 (stable) was released July 30, 2025. [1][2]
Sources:
[1] Android Developers — Test release notes (Rules 1.7.0).
[2] Android Developers — Recent release notes / All-channel listing.
Update testRules from alpha to stable version.
A stable version of androidx.test:rules 1.7.0 is available (released July 2025). Replace testRules = "1.7.0-alpha01" with testRules = "1.7.0" to use the stable release instead of the alpha version.
🤖 Prompt for AI Agents
In `@sample-compose/gradle/libs.versions.toml` at line 35, Update the testRules
version entry in libs.versions.toml: replace the current testRules =
"1.7.0-alpha01" value with the stable release testRules = "1.7.0" so the project
uses androidx.test:rules 1.7.0 instead of the alpha build.



#606
What happened 👀
HomeScreenTestandMockUtil/META-INF/LICENSE.mdand/META-INF/LICENSE-notice.mdInsight 📝
mockk-androidfor UI Test. RefdebugImplementation(libs.test.compose.ui.manifest)forandroidTestor it will throwUnable to resolve activity for Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]error. ReferenceProof Of Work 📹
ScreenRecording.mp4
Summary by CodeRabbit
Chores
Tests
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.