Conversation
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
Found 1 violations: The PR caused the following dependency changes:-+--- com.google.dagger:dagger:2.41
-| \--- javax.inject:javax.inject:1
+--- com.google.dagger:dagger-android-support:2.41
-| \--- com.google.dagger:dagger:2.41 (*)
+| \--- com.google.dagger:dagger:2.41
+| \--- javax.inject:javax.inject:1
+\--- com.google.dagger:hilt-android:2.41
+ +--- com.google.dagger:dagger:2.41 (*)
+ +--- com.google.dagger:dagger-lint-aar:2.41
+ +--- com.google.dagger:hilt-core:2.41
+ | +--- com.google.dagger:dagger:2.41 (*)
+ | +--- com.google.code.findbugs:jsr305:3.0.2
+ | \--- javax.inject:javax.inject:1
+ +--- com.google.code.findbugs:jsr305:3.0.2
+ +--- androidx.activity:activity:1.3.1 (*)
+ +--- androidx.annotation:annotation:1.2.0
+ +--- androidx.fragment:fragment:1.3.6 (*)
+ +--- androidx.lifecycle:lifecycle-common:2.3.1 (*)
+ +--- androidx.lifecycle:lifecycle-viewmodel:2.3.1 (*)
+ +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1 (*)
+ +--- androidx.savedstate:savedstate:1.1.0 (*)
+ +--- javax.inject:javax.inject:1
+ \--- org.jetbrains.kotlin:kotlin-stdlib:1.5.32 -> 1.6.10 (*)
Please review and act accordingly
|
|
You can test the changes on this Pull Request by downloading the APKs: |
ravishanker
left a comment
There was a problem hiding this comment.
Great job 💯 🎉
Feel free to merge it
| import org.junit.runner.Description | ||
| import org.junit.runners.model.Statement | ||
|
|
||
| class InitializationRule : TestRule { |
There was a problem hiding this comment.
Could this be named TestInitializationRule for better?
There was a problem hiding this comment.
InitializationRule doesn't initialize tests, it initializes AppInitializer. It is a TestRule that creates AppInitializer and run its init() function. Hilt is normally doing that in the application class, but in tests, we're doing it manually with InitializationRule. Other TestRule names in BaseTest are HiltAndroidRule, ActivityScenarioRule, WireMockRule. These also don't start with "Test".
If you still think it could be better to name it TestInitializationRule, we can do it. wdyt?
Generated by 🚫 dangerJS |
This is the last PR of hilt migration (parent PR #16143). In this PR,
WordPressReleasefor the release application to be able to use@HiltAndroidApplication. HiltAndroidApplication annotation is required forWordPressDebugandWordPressRelease, but we can't use it with the test application,To test:
There is no user-facing change. Build the app with different variants to see if it's still buildable and tests are working.
Regression Notes
Potential unintended areas of impact
Some tests might be broken. Debug and release builds might work wrong.
What I did to test those areas of impact (or what existing automated tests I relied on)
I run current tests. I built the debug app. I relied on automated tests for release build.
What automated tests I added (or what prevented me from doing so)
There is no new feature. No tests are added.
PR submission checklist:
RELEASE-NOTES.txtif necessary.