Комментарии:
@Phillipp Thanks for this awesome video.
But how are you able to test on backPressed from Fragment2 in isolation with Fragment1?
Everytime I am getting this error while testing navigation for ShoppingFragment.
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Can anyone please help ???
how would you use this with databinding?
ОтветитьEverytime I get stuck in my Android testing knowledge and I can't find what I'm looking for in the docs, I find a video by you and it helps answer most if not all of my questions, thank you, keep doing what you do :)
Ответитьthank you sir.. great explanation
ОтветитьFor me it's showing no injection was found in fragment how to inject dagger reference in Espresso tests?
ОтветитьThank you Bro
ОтветитьI was looking for a way to test navigations for a long time and this video explains how to do it in a simplistic manner. Philipp YOU ARE THE BEST 😎. By the way to create a new test class from a class (or switch to an existing test class) just use CTRL + SHIFT + T shortcut key. Thanks a lot.
Ответитьbig thanks <3
ОтветитьLove it.
After this bit, I will be extremely comfortable with every aspect of modern professional Android development...
I mean shit I have been doing it since Eclipse in 2009, MVC. SQLiteOpenhelper, crashes, crashes, ANRs.... lol.
Things have come a long way, I can't wait to see how Compose goes!!!
(I put off testing for too long really was the issue why as a Sr developer I am just doing this, I love testing now though )
java.lang.AbstractMethodError: abstract method "java.util.List org.mockito.invocation.Invocation.getArgumentsAsMatchers()"
i got this error would you please help me to solve this?
I was wondering if it is possible to use TestNavHostController instead of the mocked NavHostController? To assert that the navigation was successful I can check TestNavHostController.currentDestination. What do you think of that?
ОтветитьError: Mockito cannot mock this class: class androidx.navigation.NavController. I can't get it work with Mockito. I have to use TestNavHostController; ___ShoppingFragTest: launchFragmentInHiltContainer<S>{ setGraph+setViewNavController }; click(); assertThat (navController.currentDestination?.id). ___ Back press test: add launchFragmentInHiltContainer<A>{ setGraph+setViewNavController +navigate+popBackStack }; assertThat(current?.destination?.id. __ to_add_items_test: launchFragmentInHiltContainer <A> { setGraph+setViewNavController+navigate() } click; assertThat(navController.currentDestination?.id).___ blank_test_homework: goto video 14
Ответитьthank you very much ... for tutorials learnt a lot from you .. i have question after finishing this series..which project from your website i should learn ..to atleast get the job ..
Ответитьawesome tutorials. thank you again
Ответитьthank you
ОтветитьWho is that man who is constantly putting a dislike on every video? :) It's gonna be your hater
ОтветитьI tried but failed. Is that caused by using viewbinding? You're using syntetic which is going to be deprecated
ОтветитьThank you so much, Philipp! Great job! Keep going!
ОтветитьThanks for your video Phillip! I learnt a lot from it. How do you test navigation if you have nav args? Would anyvalue work in the navdirections action?
ОтветитьGreat tutor!! Thank you!!
Ответитьyour tutorial is very helpful . Nice
Ответитьsince the android studio has the espresso recorder, why not use that recorder to do all those tests automatically?
ОтветитьI did the first test but the test for empty curImageUrl is difficult. Someone please help me
ОтветитьI did the first test but the test for empty curImageUrl is difficult. Someone please help me
ОтветитьAwesome Video
ОтветитьSecond
ОтветитьThanks man
Ответить