hieuwu / android-groceries-store

A Groceries Store app with basic order flow. 🍕 Help you learn modern Android development skills in real production environment. ❤️
https://hieuwu.github.io/android-groceries-store/
MIT License
213 stars 55 forks source link

Cover unit test for use case GetProductsListUseCase.kt #199

Closed hieuwu closed 8 months ago

hieuwu commented 9 months ago

Currently there is no testing for use case. It would be nice if we can set up one and cover them

hieuwu commented 9 months ago

I did some in app/src/test/java/com/hieuwu/groceriesstore/domain/usecases/impl/GetProfileUseCaseImplTest.kt, you can start writing test following the convention.

krishnachaitanya0107 commented 8 months ago

Hi @hieuwu ,

I would like to work on this issue , could you please assign it to me .

Thanks

hieuwu commented 8 months ago

Hi @hieuwu ,

I would like to work on this issue , could you please assign it to me .

Thanks

Sure

krishnachaitanya0107 commented 8 months ago

Hi ,

I can see some test cases already in the GetProductsListUseCaseImplTest , so just wanted to check with you on whether we need to add any more test cases to test some particular functionality .

Thanks

krishnachaitanya0107 commented 8 months ago

Hi @hieuwu ,

Just wanted to follow up with you on this , could you please confirm on whether we need to add new test cases to (or) is the existing one sufficient ?

Thanks

hieuwu commented 8 months ago

Hey it’s completed man. Great work