-
Notifications
You must be signed in to change notification settings - Fork 26
[606] Fix: Incorrect imports in HomeScreenTest and MockUtil in Sample Compose androidTest #607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
[606] Fix: Incorrect imports in HomeScreenTest and MockUtil in Sample Compose androidTest #607
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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
Codebase cunningly covered by count Shroud 🧛
Generated by 🚫 Danger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest LGTM 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests fail to run on my end, not sure if it's an existing issue though 🤔
#606
What happened 👀
HomeScreenTest
andMockUtil
/META-INF/LICENSE.md
and/META-INF/LICENSE-notice.md
Insight 📝
mockk-android
for UI Test. RefdebugImplementation(libs.test.compose.ui.manifest)
forandroidTest
or it will throwUnable to resolve activity for Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
error. ReferenceProof Of Work 📹
ScreenRecording.mp4