I'm setting up a project in which I want to include a unit test project for testing. I'm testing this with the new TFS Online preview (dev 11), so I want to use a continuous build to test each check-in.
I've created some simple unit tests to try this out, which open up a SPSite and passes that along to some business logic methods (like the interface would do). These tests work ok in Visual Studio (I've set the config to .NET 3.5 and x64). But when handled by the Build Controller (which is the same server, same environment), I get a FileNotFoundException telling me there is no site on that address. That's quite a common error caused by either not running x64 or invalid credentials. I've made sure the build server runs as an account which has valid credentials on the site, so I think it's a x86 / x64 issue of some sort.
Anyone has any experience with this? Is it supported at all?