Replacing UI tests
You have dozens of UI tests that are slow and break often. How would you restructure the code and the tests to replace most of them with unit tests?
You have dozens of UI tests that are slow and break often. How would you restructure the code and the tests to replace most of them with unit tests?
Break down what the UI tests were verifying. State transitions, input validation, and formatting move to view model or presenter unit tests, the look of the screen moves to snapshot tests, navigation moves to router unit tests, and only a few UI tests stay for the core flows.
TestingShort answerIntro
What's the difference between unit tests, integration tests, and UI tests?
#ui-test #unit-test
TestingShort answerBasics
You got a take-home for a minimal iOS app with basic unit tests, and the brief says to…
#unit-test #architecture
TestingShort answerIntro
A teammate says they'd rather build one more feature than spend the time writing tests…
#unit-test
TestingShort answerAdvanced
This one comes up onsite: "how does your team use tests today, and how would you follow…
#ui-test