O'Reilly logo

Professional Test-Driven Development with C#: Developing Real World Applications with TDD by Jeff McWherter, James Bender

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

HOW TO INTRODUCE TDD IN YOUR TEAM

TDD can be intimidating to some developers. This is especially true for developers who do not spend the requisite amount of time away from work learning new technologies and techniques. The TDD approach is quite a departure from the traditional way of developing software. This drastic change can be difficult for some developers to understand and deal with. Some strategies can help members of your development team understand and adopt TDD. Telling them about this book is a good start. In addition, you can use some strategies to get your teammates interested in TDD.

TDD is easiest to introduce in greenfield or new projects. When a project is being planned, or development has just started, it's easy to design the application around dependency injection (DI). If you are just starting to develop a new project, start by introducing the team to DI. Adopting DI is a big step, and for a team unfamiliar with TDD, DI is a good introduction to the principles they will learn in their continued practice of TDD. As soon as the team understands and feels comfortable using DI, begin introducing them to the idea of writing automated unit tests. After the team has developed the needed skills to write unit tests, introduce the concept of test first. Take small steps; don't overwhelm your team. Wait between each step until the team is comfortable with the new practice, pattern, or technology. There is no set timetable for this; you know your team, and you'll know when ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required