Typemock不与VS2017和NUnit3 integerating

问题描述 投票:3回答:2

尝试使用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
  • TypeMock:8.6.5.1
  • NUnit的3.7.1

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

编辑:当我“跑”的测试,它工作正常。它不但不能在“调试”。

visual-studio-2017 nunit-3.0 typemock typemock-isolator
2个回答
1
投票

解决这个问题(由支持TypeMock提供)如下。

创建knownRunners.dat一个文件名为C:\Program Files (x86)\Typemock\Isolator\8.6(TypeMock评论说,这可能不是我的TypeMock 8.6安装的位置 - 所以这将是最好的确认。)该文件的内容应该是:

testhost.x86.exe
testhost.exe

这样做后我重新启动Visual Studio中,我可以调试测试,没有任何问题。


-2
投票

我的名字是珊瑚,我为Typemock工作。

我注意到一个偶然的机会您的文章在这里,我想帮助你:)

你介意回答下列问题,请:

•什么是您使用运行测试跑步吗? •您是否使用其他工具,以及(如dotCover,覆盖)?

此外,我会很感激,如果你可以运行下面的任务对我来说:

转到Typemock->选项 - >嘲讽集成,并检查“启用嘲讽一体化”和“启用自动链接(与其他覆盖工具)”复选框被选中了。然后,打开开发人员命令提示符下VS2017作为管理员 - 运行命令:devenv的/设置 - 等待,直到它完成 - 打开您的解决方案

现在尝试调试您的测试,并请让我知道是否能解决问题。

这将是有益的,如果你可以在日志中直接发送给我们以下电子邮件地址:[email protected]

您可以通过检索(Typemock->选项 - >日志 - >嘲讽日志(检查SmartRunner以及如果通过SmartRunner运行)

我希望这有帮助。今后,随意打开在Typemock支持票:https://typemock.freshdesk.com/support/tickets/new

© www.soinside.com 2019 - 2024. All rights reserved.