Testing
Telling test doubles apart
"I want to replace the analytics event sender and check in the test which events the view model sent, with which arguments, and how many times." Which test double fits that purpose best?
Pick one
Telling test doubles apart
"I want to replace the analytics event sender and check in the test which events the view model sent, with which arguments, and how many times." Which test double fits that purpose best?
Pick one
TestingShort answerBasics
What is a test double?
#test-double #spy #stub #mock
TestingShort answerAdvanced
You want to test a network layer that uses URLSession directly, with no real server. Can …
#mock
TestingShort answerBasics
This screen leans heavily on an API response. How would you change the code so you can te…
#stub
TestingShort answerBasics
A travel booking app's search screen UI tests call every API against the real server, so …
#stub