Please enable JavaScript.
Coggle requires JavaScript to display documents.
Testing blogpost (Structure (Designing test cases (TDD skip this section?…
Testing blogpost
Structure
What is the point?
Development
-
Speed
Wouldn't be nice if I fire the simulator once and have high hopes it works?
Can I fully develop the model, the view model, the business rules, catering them for all their edge cases (Api 401, keychain failure, user defaults interaction) without spinning up the simulator one or two times?
Without even having implemented the navigation to my screen?
To me this one is one of the greatest joys of testing.
Usually people claim that testing slows you down while developing but speed you up later when you make changes.
I have seen many cases were testing really speeds up the process well developing
Refactoring
Really tied to the above argument.
Refactoring Is only true to its meaning when you have tests to point out things broken.
Otherwise it is rewriting with the risks it holds. I made it nicer, but did I break something?
Regression
Common argument in favour of testing.
Tests act as a safety net.
A failure in our app could be very costly.
Increase trust that we can add new code and modify existing without breaking something.
Remove fear from older and newer member sof our team of touching green field areas.
-
-
Designing test cases
-
-
-
-
-
ok Meszaros approach is a starting point
But still many questions
what tests do I write for each function?
-
Intro
-
-
Sockets, network api, keychain etc
-
-
-