gpt4 book ai didi

visual-studio-2017 - Typemock 未与 VS2017 和 NUnit3 集成

转载 作者:行者123 更新时间:2023-12-04 13:59:26 24 4
gpt4 key购买 nike

尝试调试使用 TypeMock 的测试时出现以下错误:

TypeMock.TypeMockException: '
*** Typemock Isolator is currently disabled. Enable using the following:

* Within Visual Studio:
- Use Typemock Smart Runner
- For other runners, Choose Typemock Menu and click "Integrate with Other Runners"

* To run Typemock Isolator as part of an automated process you can:
- run tests via TMockRunner.exe command line tool
- use 'TypeMockStart' tasks for MSBuild or NAnt

For more information consult the documentation (see 'Running Unit Tests in an Automated Build')'

选择了“与其他运行者集成”。

版本:
  • Visual Studio:15.9.4
  • 类型模拟:8.6.5.1
  • NUnit:3.7.1

  • 安装最新版本的 TypeMock 和 NUnit 并不能解决问题。

    编辑:当我“运行”测试时它工作正常。它仅在“调试”中失败。

    最佳答案

    这个问题的解决方案(由 Typemock 支持提供)如下。
    创建一个名为 knownRunners.dat 的文件在 C:\Program Files (x86)\Typemock\Isolator\8.6 (Typemock 说这可能不是我安装 Typemock 8.6 的位置 - 所以最好确认一下。)文件的内容应该是:

    testhost.x86.exe
    testhost.exe
    完成此操作后,我重新启动了 Visual Studio,并且可以毫无问题地调试测试。
    编辑 (2021-03-08)
    至少在 Typemock 8.2.3 中,这个问题变得断断续续。更新 knownRunners.dat 的内容以下应解决任何问题:
    testhost.net48.x86.exe
    我发现 8.9.3.1 版可以正常工作,没有任何问题。

    关于visual-studio-2017 - Typemock 未与 VS2017 和 NUnit3 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53983541/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com