generated from nimblehq/git-template
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[#69] Create HomeScreen UnitTest #71
Merged
hoangnguyen92dn
merged 3 commits into
develop
from
chore/69-create-home-screen-unit-test
Feb 1, 2023
Merged
[#69] Create HomeScreen UnitTest #71
hoangnguyen92dn
merged 3 commits into
develop
from
chore/69-create-home-screen-unit-test
Feb 1, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luongvo
reviewed
Jan 11, 2023
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Show resolved
Hide resolved
luongvo
reviewed
Jan 11, 2023
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/home/TrendingItem.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/home/TrendingItem.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Show resolved
Hide resolved
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreen.kt
Show resolved
Hide resolved
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/home/PortfolioCard.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/co/nimblehq/compose/crypto/ui/screens/home/PortfolioCard.kt
Outdated
Show resolved
Hide resolved
CoroutineTemplate Jacoco report:Generated by 🚫 Danger |
Base automatically changed from
bug/72-migrate-workflows-setup-ruby-action
to
develop
January 16, 2023 06:15
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Show resolved
Hide resolved
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/co/nimblehq/compose/crypto/ui/screens/home/HomeScreenTest.kt
Outdated
Show resolved
Hide resolved
Except comments from Lucas, the rest LGTM 🚀 |
hoangnguyen92dn
approved these changes
Feb 1, 2023
luongvo
approved these changes
Feb 1, 2023
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.
LGTM @Wadeewee 💪
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#69
What happened 👀
Create
HomeScreen
as UnitTest by usingRobolectric
Insight 📝
testImplementation
org.robolectric:robolectric:4.8.2
to use the Roborectric.testOptions
toincludeAndroidResources
for UnitTest.robolectric.properties
to simulate the device.HomeScreenTest
.testTag
to allow modified element to be found in tests. For more info, Please have a look on thisgetMyCoins
andgetTrendingCoins
as it can happen at the same time, Also it can happen whenever werefresh
too, So, I think it would be better to separate them out from the base one inBaseViewModel
(TBD).Proof Of Work 📹
Screen.Recording.2566-01-11.at.16.17.34.mov