Testing ASP.NET MVC website

久未见 提交于 2019-12-01 17:52:06

in the solution explorer Under solution items double click LocalTestRun.testrunconfig go to deployment and add the image

http://img17.imageshack.us/img17/5219/sanstitrelca.jpg

In MSTest, the framework copies all .dlls to a folder called TestResults. Unfortunately, it only copies .dlls, .pdbs and .configs from the output folder to the TestResults folder, so your files are not being copied.

To copy those files, you will need to either

  • add the DeploymentItem attribute to the test(s) in question
  • edit your .testrunconfig file by adding the appropriate files in the Deployment tab

A better alternative is to embed the test-specific files in the test as an embedded resource and then read them directly from the resource stream.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!