SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Its sort of an open ended question but can anybody share the experiences, approaches, tools and infrastructure to implement following in their SharePoint Projects:

  1. Unit Testing
  2. Performance Testing
  3. Load Testing
  4. Integration Testing

It will be great if people can share any pitfalls they had in their past projects. How a SharePoint Project was different then a normal .NET project?

share|improve this question
up vote 3 down vote accepted

Unit Testing on SharePoint only really begins to work properly when you mock the SharePoint object model using one of a few methods.

Andrew Woodward over at has documented his findings of this, particularly with using TypeMock Isolator for SharePoint.

I also seen a recent presentation of his which demonstrated UI Testing Features available in Visual Studio 2010 Ultimate, which was quite interesting. (Slide Deck:

For Load Testing, I have seen a good presentation from Steve Smith of Combined Knowledge about using Visual Studio for Load Testing a SharePoint farm. If you contact him through Twitter I'm sure he may be able to point you to resources regarding this:

share|improve this answer
Thanks James. I checked the link and there is another one by Sahil Malik about Test Driven Development. It looks like that opinions are divided on how to implement normal Software Development practices. – Namwar Rizvi Sep 2 '10 at 8:49

You can use Pex and Moles to unit test SharePoint in isolation. There are 2 tutorials to get started:

share|improve this answer
Should point out that Pex/Moles addins are only for Visual Studio 2010 (at time of writing I couldn't see VS2008 versions). – James Love Sep 3 '10 at 7:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.