【问题标题】:Unable to get NUnit to display in Create Unit Test dialog in Visual Studio 2017无法在 Visual Studio 2017 的“创建单元测试”对话框中显示 NUnit
【发布时间】:2017-10-18 10:00:41
【问题描述】:

看了几个答案,比如这个How to run NUnit tests in Visual Studio 2017?我还是一头雾水,无法让Visual Studio发挥好。

这是我所做的,以及我发现不适合我的地方。

已添加 NUnit 3 测试适配器扩展

在我的测试项目中添加了 NUnit 和 NUnit.Console 包

我在创建单元测试对话框中没有 NUnit

我确实遇到了一个问题,即实时测试也没有测试我的测试,尽管通过将 Nuget 包 NUnit3TestAdapter 添加到我的项目中解决了这个问题;考虑到我添加了扩展,这似乎很奇怪?

我可以做些什么来让其他测试框架显示在创建测试对话框中,也许还有其他可能受到影响的 VS2017 区域?

【问题讨论】:

    标签: visual-studio unit-testing nunit


    【解决方案1】:

    啊,需要安装另一个名为“Test Generator NUnit extension”的扩展

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-24
      • 1970-01-01
      • 1970-01-01
      • 2022-06-25
      • 2023-03-02
      • 1970-01-01
      • 2010-10-17
      • 1970-01-01
      相关资源
      最近更新 更多