DotCover not respecting .testsettings deployment settings

When I run my tests without coverage, they pass fine..  When I run with coverage, the first line in the test below fails because "NpiFileListingPage.html" was not copied to the test deployment directory as instructed by my .testsettings file.  If it helps, I noticed that the error message shows the test results being deployed to the \bin\debug folder as opposed to the usual \TestResults folder...

[TestMethod]
public void GetLinks_GivenValidFile_FindsAllLinks()
{
     var contents = File.ReadAllText(Path.Combine(TestContext.DeploymentDirectory, "NpiFileListingPage.html"));
 
     <snip>
}


System.IO.FileNotFoundException: Could not find file '<snip>\bin\Debug\Deploy_ADresko 2014-11-08 12_29_18\Out\NpiFileListingPage.html'.

What to do?

Please sign in to leave a comment.