DaggerMock
DaggerMock copied to clipboard
Error at mock Repository
Hello,
I'm trying to test my login and I have some problems. The repo that I use to login has a function with username and password params. In my test I mock the Login Repository but it doen't work. I don't know what is the problem. Can you help me please?
I create a example repo: https://github.com/jstr14/Testing the example is on scafolding branch My test is on LoginTest class
Thank you very much
Hi, the LoginTest seems to be empty in scafolding branch:
https://github.com/jstr14/Testing/blob/scafolding/app/src/androidTest/java/cat/helm/basearchitecture/LoginTest.kt
Hello, I upload the correct LoginTest, thanks for your reply
Hi, I think it doesn't work because you are using dexopener but you haven't declared the test runner in your build.gradle file. You can find more info here: https://github.com/tmurakami/dexopener