How do you test code that uses the TFS Object Model?

I know a number of people who have considered mocking the TFS OM. They've all given it up and put it in the “too hard” basket. The WIT is particularly tricky due to the amount of processing that goes on in the client.

They end up using a real TFS Server in a VPC (such as the VSTS 2008 Trial VPC) with snapshots/undo disks to rollback to a sane state.

Published 22 July 08 03:35 by grantholliday
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Ianceicys said on July 22, 2008 9:46 AM:

I think that testing in the VPC is the standard way to ensure that your code works. I am amazed at how much memory is used by the Object Model. I routinely see C# applications that use the OM consumming upwards of 90 megs of memory.

This high memory usage requires pretty beefy VMs.

# Team System News said on July 29, 2008 7:00 AM:

Grant Holliday on What product key do I use for TFS Proxy? and How do You test code that uses the TFS...

# William Bartholomew said on July 31, 2008 6:04 AM:

Mocking the APIs is always a temptation and in Team Build this is particularly easier, but testing against a VM or a test server is usually the easiest process.

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker