This video introduces another key technique of extreme programming (XP) called test-driven development (TDD). A discussion on the sequence of steps for implementing test-first development is described followed by the advantages of test-driven development. The discussion includes a key code metric called code Coverage and build a case for including automated tests as a part of continuous build.
- Another code practice of extreme programming…is test driven development.…Test driven development means you never write…any code until you've written and failed…a test for it.…It is a three step process.…The first step is to write a function for a test…that has yet to be written.…The code will not compile.…The next step is to write the function…so you have just enough code to make sure…the code compiles.…
The test should fail.…If the test passes, the test is inadequate…to verify any functionality…and should be refactored.…The third and the last step is to complete coding…of the function to meet requirements of the test.…After you write each test, you refactor the code…to meet the requirements of the test.…Then you write another test and refactor the code…to pass the test.…This process continues until you have exhausted…your list of tests, and your code is complete.…
The essence of test driven development…is thinking about test scenarios before implementation.…This may appear a little backwards initially,…but it reduces the bias developers have towards testing…
- Agile principles
- Scrum roles, artifacts, and rules
- Common myths and misconceptions about agile approaches
- Agile software engineering techniques
- Extreme programming (XP) and test-driven development (TDD)
- Kanban for developers
- Limiting work in progress (WIP)
- Scaling the output of agile teams
Skill Level Beginner
Agile at Work: Building Your Agile Teamwith Doug Rose1h 4m Intermediate
DevOps Foundations: Lean and Agilewith Ernest Mueller1h 26m Beginner
What you should know1m 2s
1. Agile Fundamentals
2. Scrum: The Developer Perspective
3. Agile Software Engineering Techniques
4. Kanban for Developers
5. Scaling Agile
Next steps1m 15s
- 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.