Beginners Guide to Test Driven Web Part Development

Break free and do some TDD

Break free and do some TDD

This white paper forms part of our Unit Testing SharePoint Solutions – The Basics series and provides an introduction to unit testing web parts within SharePoint 2007; this is a beginner’s guide and as such does not aim to address some of the more challenging issues you will face as you develop your SharePoint solutions (we will be covering these in our future more advanced white papers) but aims to get you thinking about how to develop with testability in mind.

We start with a common user story and walk you through the development of the functionality adopting a Test Driven approach. We introduce some of the tools and frameworks we use to help us adopt a TDD approach and look at where we feel the border between Unit and Integration testing exists.

The white paper Unit Testing SharePoint Solutions – The Basics

The code supporting the white paper Unit Testing SharePoint Solutions – The Code

This white paper is based on our views and experience, we welcome your comments and suggestions and will update the white paper as the community knowledge, experience and best practice evolves.