-
Notifications
You must be signed in to change notification settings - Fork 0
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
unit-tests #3
base: master
Are you sure you want to change the base?
unit-tests #3
Conversation
…cer of the MealDetailsFeature were added
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.
WDYT are the task requirements exactly the way of TDD?
app/src/test/java/com/hifeful/mealmania/presentation/MealManiaViewModelTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/com/hifeful/mealmania/presentation/MealManiaViewModelTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/com/hifeful/mealmania/presentation/MealManiaViewModelTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/com/hifeful/mealmania/presentation/MealManiaViewModelTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/com/hifeful/mealmania/presentation/details/MealDetailsViewStateTest.kt
Outdated
Show resolved
Hide resolved
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.
Needs to demonstrate usage of Robolectric
- mocks instead of real objects are used in the MealDetailsViewStateTest now - test titles in the MealManiaViewModelTest.kt were changed - comments were removed
If we're talking about the strict TDD, then we should start writing our code from the unit tests. |
Regarding the usage of Robolectic, in my unit tests, I added |
MealManiaViewModel
,MealDetailsViewState
, andReducer
of theMealDetailsFeature
were added