All Questions
Tagged with instrumented-test android-fragmentscenario
2 questions
0
votes
0
answers
28
views
Android FragmentScenario androidTest prevent running network calls on launch and view model testing
I have an existing fragment class as part of a navigation graph component and uses Dagger to create instances of ViewModels scoped to the nav graph. However, I have a few questions about ...
0
votes
1
answer
1k
views
testing androidx.fragment lifecycle by stopping and resuming with FragmentScenario, onCreateView() called twice but this bug is already fixed in 1.3.1
I'm writing instrumented tests for my app using androidx.fragment:fragment-testing. One of test cases is to check if all underlying logic behaves correctly when Fragment is stopped and resumed, to ...