thiennguyen0196 / survey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Improvement] Adding Instrumented Test for UI

hoangnguyen92dn opened this issue · comments

commented

Issue

As you already added UnitTest for some classes (SurveyRepositoryImplTest, AuthenticationRepositoryImplTest, and you also mentioned adding ViewModel + UseCase test classes), there is no Instrumented test case for the UI part to test the behavior of user actions

Expected

I would suggest adding some Instrumented Tests for screens to verify the app behavior on user actions.

Instrumentation test has been added in PR #24

commented

@thiennguyen0196 When I execute the test on my device all the tests failed. Or could you please show me the test passed proof on your local?

image

@hoangnguyen92dn

Hmm 🤔 It seemed odd to me because when I run the android test in my emulator (freshly start with prodDebug build variants), every test case is executed successfully.
Here is my record screen:

Screen.Recording.2022-04-29.at.10.23.48.AM.mov
commented

@thiennguyen0196 I tried on the emulator but there are some tests that failed once logged in 😅
image

commented

@thiennguyen0196 Anw, thanks for the update. We will review and conclude based on your test cases 💪