Resharper 7:MSTest无法正常工作-“测试未运行" [英] Resharper 7: MSTest not working - "Test wasn't run"
问题描述
自从我升级到VS2012和Resharper 7之后,以前运行的MS测试不再运行.
Since I upgraded to VS2012 and Resharper 7, my previously working MS Tests are not running anymore.
测试在ASP.NET环境中运行.我使用以下属性:
The tests are run in an ASP.NET environment. I use the following Attributes:
[TestMethod]
[HostType("ASP.NET")]
[AspNetDevelopmentServerHost("C:\\Projekte\\****\\Website", "/")]
[UrlToTest("http://localhost:7924/")]
有什么办法解决这个问题吗?
Any idea how to fix this?
推荐答案
使用VS2012,使用Resharper 8.0,使用NUnit,这很奇怪,因为我的app.config文件中存在一个条目.我添加了EntityFramework连接字符串,此行为开始了.删除整个连接字符串部分将显示测试运行器再次启动/工作.查看输出显示app.config无效-这在测试运行器中引起了这种特定行为-测试未运行".
As odd as it is, using VS2012, using Resharper 8.0, using NUnit, I was receiving this error because of an entry in my app.config file. I added an EntityFramework connection string and this behavior started. Removing the entire connection strings section shows the test runner starts/works again. Viewing output shows the app.config is not valid - this was causing this specific behavior in the test runner - "Test wasn't run".
这篇关于Resharper 7:MSTest无法正常工作-“测试未运行"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!