Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

2 Answers 2

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 21apps.com has documented his findings of this, particularly with using TypeMock Isolator for SharePoint. http://www.21apps.com/category/agile/testing/

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: http://www.21apps.com/sharepoint/slides-ui-testing-bpc10/)

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: http://twitter.com/stevesmithck

share|improve this answer
    
Thanks James. I checked the link and there is another one by Sahil Malik blah.winsmarts.com/2009-6-SharePoint_and_TDD.aspx 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
1  
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

 
discard

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.