Start learning with our library of video tutorials taught by experts. Get started

Foundations of Programming: Test-Driven Development
Illustration by

Foundations of Programming: Test-Driven Development

with Simon Allardice

Video: Welcome

Hi. I'm Simon Allardice, and welcome to foundations of programming, test driven development. Now, this is programming, and you should never just hope that your code works properly. You should be able to prove it, and prove it again and again, every step of the way. From the very first lines of code you write, all the way through to deploying an application. And the best way to prove it is with automated tests. But this isn't the kind of testing you only do at the end as part of a quality assurance state. Test-driven development, or TDD for short, is a way of doing automated testing that is built-in to your day-to-day routine.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Foundations of Programming: Test-Driven Development
1h 50m Beginner Jun 11, 2013

Viewers: in countries Watching now:

Prove your code is working every step of the way using a formalized test-driven development (TDD) process. TDD can be done in every modern programming environment, and for desktop, mobile, or web apps. In this course, Simon Allardice teaches you exactly how to get started with TDD: what makes a good test, why we're more interested in failure than success, and how to measure and repeatedly run tests.

The course explores the jargon of TDD—test suites, test harness, mock and stub objects, and more—and covers how TDD is used in the most common programming languages and environments. Plus learn to create, run, and manage the tests and move to a test-first mindset.

Topics include:
  • What is test-driven development?
  • Using unit testing frameworks
  • Creating tests
  • Using assertions
  • Creating multiple test methods
  • Naming unit tests and test methods
  • Testing return values
  • Setting up and tearing down
  • Introducing mock objects
  • Measuring code coverage
Subjects:
Developer Programming Foundations
Author:
Simon Allardice

Welcome

Hi. I'm Simon Allardice, and welcome to foundations of programming, test driven development. Now, this is programming, and you should never just hope that your code works properly. You should be able to prove it, and prove it again and again, every step of the way. From the very first lines of code you write, all the way through to deploying an application. And the best way to prove it is with automated tests. But this isn't the kind of testing you only do at the end as part of a quality assurance state. Test-driven development, or TDD for short, is a way of doing automated testing that is built-in to your day-to-day routine.

It becomes an integral part of everything you do. And in this course, we'll see how to get started with test driven development. First, by clearing up some misconceptions about TDD versus other kinds of software testing. We'll then explore the basic ideas and jargon of TDD, working with tests and test fixtures and text suites, setting up and tearing down and mock objects. We'll see what makes a good test. We'll then explore what software exists to help you create, run and manage your tests.

And perhaps most importantly, see how to move to a test-first mindset, to take your testing from being an afterthought into something that drives your everyday development. So, let's get started.

There are currently no FAQs about Foundations of Programming: Test-Driven Development.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

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.


Mark all as unwatched Cancel

Congratulations

You have completed Foundations of Programming: Test-Driven Development.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.