I've just started playing with ncrunch and really like the setup. I'm having a little trouble with my integration tests that go against the SharePoint 2010 server object model. In SharePoint development, you have to instantiate the site object using the code
using(SPSite site = new SPSite(<siteUrl>)
{
//code to execute against site goes here.
}
In Nunit itself these tests run fine, but in the ncrunch runner they all fail with a "System.IO.FileNotFoundException" with the Inner Exception message of "The Web application at <serverUrl> cannot be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application." The failure happens at the line where I'm creating the new SPSite object.
What's very interesting is that this issue same issue actually crops up when trying to access the SharePoint2010 server object model in MSTest, unless you have VS SP1 and you make sure your test project targets .NET 3.5. This is a well known and well documented issue, so I wonder if there's a similar root cause here. Below are a few links on the MSTest issue.
The problem described
https://www.nothingbutsh...2010%20Development.aspx
The fix
http://sharepoint.bg/rad...nt-2010-with-MSTest.aspx