https://kotlinlang.org logo
s

Steve

03/16/2020, 9:34 PM
When testing an MVVM setup (ViewModel, Repository, Data provider thingy), would it make sense to, in each of those things, validate that the Response object has the correct data in it, or just to make sure that it's getting the correct object?
j

Jimmy Alvarez

03/18/2020, 2:49 AM
In my opinion, it relies on the testing level you want to apply to. for me it needs to have a unit test to make sure that app is receiving the correct data an another integration one to validate the data transformation througth all layers.
2 Views