visual-studio - Resharper 7 : MSTest not working - "Test wasn' t run"

标签 visual-studio resharper mstest visual-studio-2012 resharper-7.0

自从我升级到 VS2012 和 Resharper 7 后,我以前工作的 MS 测试不再运行了。

enter image description here

测试在 ASP.NET 环境中运行。我使用以下属性:

    [TestMethod]
    [HostType("ASP.NET")]
    [AspNetDevelopmentServerHost("C:\\Projekte\\****\\Website", "/")]
    [UrlToTest("http://localhost:7924/")]

知道如何解决这个问题吗?

最佳答案

奇怪的是,使用 VS2012、使用 Resharper 8.0、使用 NUnit,由于我的 app.config 文件中有一个条目,我收到了这个错误。我添加了一个 EntityFramework 连接字符串,并且这种行为开始了。删除整个连接字符串部分显示测试运行器再次启动/工作。查看输出显示 app.config 无效 - 这导致测试运行器中出现此特定行为 - “测试未运行”。

关于visual-studio - Resharper 7 : MSTest not working - "Test wasn' t run",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12191352/

相关文章:

.net - 使用 ReSharper 快速打开多种类型

resharper - resharper(Visual Studio)中是否有类似测试的快捷方式来创建单元测试

.net - 为什么我的单元测试可以在 Visual Studio 2010 中运行,而不能在 Jenkins 中运行?

c# - 单元测试添加到 Zip/从 Zip 中提取

c# - 如何在 UWP ListView 的最后一列中添加文本框?

c# - Visual Studio 中构建的进度

c# - 如何使用 Visual Studio(和/或 ReSharper)从类字段生成构造函数?

asp.net - 发布具有多个项目的 Web 应用程序

c++ - 使用 CMake 安装的 PDB 文件

c# - 在 shim 类中调用原始方法