Visit My Sponsors - SharePointAds







Easily Secure SharePoint Documents
Based on Metadata. By Titus Labs.



SharePoint Joel's SharePoint Land > Posts > TDD Unit Testing SharePoint - What Tools Do You Use? A Twitter Conversation Q & A
TDD Unit Testing SharePoint - What Tools Do You Use? A Twitter Conversation Q & A

This morning I was in a meeting with a bunch of developers and they asked me… “What is the best tool for Unit Testing SharePoint?” I talked to them about patterns and practices SharePoint  (Thanks Francis Cheung, your User Group session at Puget Sound SPUG paid off.)

I then went to http://www.SharePointDevWiki.com right in the meeting to look at the list of tools and resources and found a post on SharePoint Development with Unit Testing.  They were asking alternatives to WSPBuilder and I knew the spdevwiki had a comparison of solution package development tools including a killer side by side chart of WSPBuilder with STSDev and VSeWSS.  The resources were extensive and the name brand resources were great!  The people in the meeting had heard of the tools, but were looking for more.  Next I went to SharePointReviews.com to see if any third parties had any dev/testing tools, but I didn’t see a development category.  The deployment category didn’t fit.  Twitter was running through my brain.  It prompted me to say let me ask my twitter buddies... (even though my friends in the states were asleep.)

I posted this question to Twitter in the middle of my customer meeting and had 80% of theses responses by the end of the meeting.  The customer was super impressed by the quick quality responses.

JoelOleson – @jthake what is the best unit testing tool for SharePoint?

@AndrewWoody @harbars What do you use for Unit Testing SharePoint?

andrewwoody - @joeloleson @harbars either MSTest (built in to VS) or NUnit as framework with Typemock Isolator to mock out SharePoint

mahoekst - @joeloleson Check out: http://www.codeplex.com/spg they have used unit testing in version 2 of the solution (including mocks) very nice.

rmaclean - @joeloleson TFS - white paper on it: http://tinyurl.com/tfssharepoint

zimmergren - @joeloleson @AndrewWoody I use NUnit myself, and the Resharper has some cool testing utilities to help out.

JoelOleson – @AndrewWoody Awesome. It's nice to see TDD coming to SharePoint, but we need more. Experience with Typemock, Isolator?

andrewwoody - @joeloleson yes lots of experience with Typemock Isolator see Unit Testing posts here http://www.21apps.com/agile/

JoelOleson - @zimmergren @AndrewWoody cool. Thanks for sharing. I'm filling in a customers here in Germany with this rich info.

harbars - @joeloleson @AndrewWoody NUnit is my preferred option. DevPartner also good ..., MSTest is good also, lifestyle choice!

What an incredibly rich interactive world wide discussion in the course of an hour… and who knows… it may not be over!

What did I learn:

We also discussed some things I’d learned from twitter from a search on “#MIX09 and SharePoint.”

@katriendg VS2010 will have full debugging and development experience for SharePoint, yeah some people will be happy! #mix09

Blog Resources

Snippet from SPDevwiki on SharePoint Development with Unit Testing (from Top posts) please Contribute! Thanks Jeremy Thake, @spdevwiki the Wiki Rocks!

  • Microsoft - SharePoint Guidance - Unit Testing
    Microsoft has published an article on Unit Testing in SharePoint as part of the SharePoint Guidance
  • Andrew Woodward - 21Apps
    Andrew has a great set of articles on Unit Testing in SharePoint Development including 2 excellent White Papers.
  • Francis K. Cheung - Unit Testing SharePoint 2007 Applications
    Francis discusses the approaches and also the reasons why SharePoint Unit Testing is so difficult.
  • SPTDD: SharePoint and Test Driven Development, Part One by Eric Shupps
  • Spencer Harbar - "Test Driven" SharePoint Development
  • Comments

    Thanks for the praise

    Thanks for the praise on the wiki, it's great to see the community getting behind it and contributing stuff! Don't forget my webcast where I talk about Unit Testing in SharePoint. They'll be more of these to come too: http://wss.made4the.net/archive/2009/03/25/sharepoint-development-with-unit-testing-webcast.aspx
    at 4/3/2009 6:48 PM

    Add Comment

     Social Comments

    Post Comments to your Facebook Profile Post comments to twitter or on SharePointJoel.com
    blog comments powered by Disqus
    Share

    Blog (RSS)

    Follow on Networked Blogs Facebook

    Recent Comments

    Powered by Disqus
    Subscribe by Email or RSS

    Contact me

     20 Recent Posts

    Effective SharePoint 2010 Upgrade Q&AUse SHIFT+ENTER to open the menu (new window).New
    How Microsoft Is Doing Records ManagementUse SHIFT+ENTER to open the menu (new window).New
    Free Webcast: Get to SharePoint 2010 – Strategies for Effective Upgrades and MigrationsUse SHIFT+ENTER to open the menu (new window).
    SharePoint 2010 and SQL Hotfix DependenciesUse SHIFT+ENTER to open the menu (new window).
    Aptillon SharePoint Consulting GeniusUse SHIFT+ENTER to open the menu (new window).
    Really, A SharePoint Training Cruise?Use SHIFT+ENTER to open the menu (new window).
    Updated Guidance on SharePoint 2010 Upgrade and the FAB 40 application templatesUse SHIFT+ENTER to open the menu (new window).
    SharePoint 2010 Upgrade Decision TreeUse SHIFT+ENTER to open the menu (new window).
    We’re Serious - Don’t Modify Your Database or Face ConsequencesUse SHIFT+ENTER to open the menu (new window).
    Remove/Deactivate a missing feature for a cleaner upgradeUse SHIFT+ENTER to open the menu (new window).
    Free Webcast: Best Practices for Upgrading and Migrating to SharePoint 2010Use SHIFT+ENTER to open the menu (new window).
    I’m in Utah today at the MOSSPit (SLC UG)Use SHIFT+ENTER to open the menu (new window).
    Wish you had free end user training incorporated into your SharePoint environment?Use SHIFT+ENTER to open the menu (new window).
    SharePoint Virtual Expo Networking EventUse SHIFT+ENTER to open the menu (new window).
    Planning SharePoint Deployments with RACIUse SHIFT+ENTER to open the menu (new window).
    Reaching out to the SharePoint Portuguese CommunityUse SHIFT+ENTER to open the menu (new window).
    Kudos to Owen Allen @owenallenUse SHIFT+ENTER to open the menu (new window).
    Practical Windows PowerShell for SharePoint 2010Use SHIFT+ENTER to open the menu (new window).
    Project Server 2010 and SharePoint 2010 CoexistenceUse SHIFT+ENTER to open the menu (new window).
    What’s Next in SharePoint LandUse SHIFT+ENTER to open the menu (new window).