Saturday, August 11, 2012

CC.NET and SharePoint nightmares

A while ago I thought I was done setting my SharePoint unit tests and ready to execute them with xUnit/CC.NET. However, things didn't work. I didn't consider that xUnit runs as 32 bit and SharePoint runs as 64 bit. How I concluded this was causing the problems will be part of another post. The solution was to compile xUnit as 64 bit (set target = x64) and voila!

One thing that I didn't solve was that even though this solution worked in computer A, it didn't work in computer B. I also got to say that there was little information on the web about setting up automated unit tests in SharePoint. Am I one of the few people that dares unit test SharePoint modules?

No comments: