Understand the Red/Green/Refactor method of coding.
- We now have a basic understanding…of the theory behind test-driven development.…Let's move on to the main technique we'll be using…for the rest of the course: red, green, refactor.…Burn this into your mind's eye.…It's going to be your best friend on every single one…of your future test-driven development projects.…This technique is essentially a closed development loop,…continually repeating itself until the test suite is done…and your project is shipped.…Let's break down the components individually.…
First, we write the minimum amount of code…we need to create a failing test.…This is the red phase.…Second, we write the actual implementation code…to make the failing test pass.…Now if your test passes, we're in the green phase.…Last, the refactor phase where we look…at any repeated or extraneous code in our test functions…and either move it into the test setup…or delete it entirely.…Keep the dry principle in mind here.…Don't repeat yourself.…
Keep in mind that refactoring may extend…to multiple tests in your suite,…
- Test-driven development: history and theory
- Creating a data model test
- Expanding tests
- Testing class methods
- Checking for duplicates
- Testing table views
- Mocking cells
- Testing cell selection
- Assembling the app
Skill Level Intermediate
Distributing Your iOS App for Testing with TestFlightwith Ron Buencamino35m 10s Intermediate
1. Foundation and Theory
2. Data Models and the Manager Class
3. UITableView Testing
4. Finishing Touches and Xcode Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.