Chris's profileChris Burrows' Live Spac...PhotosBlogListsMore ![]() | Help |
|
September 07 Unit Tests failing because files cannot be found on build machineAfter my post yesterday on Using External Files in unit tests, I found a bug when using the deployment section of a testrunconfig file to copy a directory of files. Whilst this worked fine on the local developers machine, however when it ran on the build server the files didn't appear. After about 30 minutes of googling I came across this post in the forums. I've taken the steps and modified them slightly so you don't have to leave Visual Studio. 1. In Visual Studio right click on your active .testrunconfig file in the solution items directory. This is usually called localtestrun.testrunconfig. 2. Selected open with and choose the XML editor 3. Find your folder in the file. Unfortunately, the XML is produced in on big line that means that using the find command is the quickest way of doing this. <deploymentItems type="Microsoft.VisualStudio.TestTools.Common.DeploymentItemCollection"> 4. Delete the '\' (backslash) from the end of that string 5. Save and check-in. Sit back and watch the continuous integration fly!! TrackbacksThe trackback URL for this entry is: http://madtechnology.spaces.live.com/blog/cns!F637E4FD356E127D!118.trak Weblogs that reference this entry
|
|
|