Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unit testing Nrunch与Typemock的集成未能运行测试_Unit Testing_Visual Studio 2015_Typemock_Ncrunch - Fatal编程技术网

Unit testing Nrunch与Typemock的集成未能运行测试

Unit testing Nrunch与Typemock的集成未能运行测试,unit-testing,visual-studio-2015,typemock,ncrunch,Unit Testing,Visual Studio 2015,Typemock,Ncrunch,在运行测试时,我从NCrunch获得以下异常 *** Failures *** Execute TypeMock.TypeMockException: *** Typemock Isolator is currently disabled. Enable using the following: * Within Visual Studio: - Use Typemock Smart Runner - For other runners, Choose Typemock

在运行测试时,我从NCrunch获得以下异常

*** Failures ***

Execute
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')
HResult: -2146233088
   at TypeMock.InterceptorsWrapper.VerifyInterceptorsIsLoaded()
   at _I2KaEbJqCiZdAXHCaew5L4YgGK2_._YVpKHl6s8x54awChyHFFGG1W9p_._M9wuZsfNQUSOigKL83XBnloMATg_()
   at TypeMock.MockManager.Init(Boolean collectAllCalls)
   at _gpWkmvHy51MsHfP5XcTmisQFOGh_._w05d89eUlRCsAnXfWIN6HIvOW7P_._LZu54JRvjOVy0mycnVTOacyFHBR_[?](Members , Constructor , Constructor , Type , Object[] )
   at _gpWkmvHy51MsHfP5XcTmisQFOGh_._w05d89eUlRCsAnXfWIN6HIvOW7P_.Instance[T](Members behavior, ConstructorWillBe constructorBehavior, BaseConstructorWillBe baseConstructorBehavior)
   at NOES.Business.Control.Rollformers.RollformerStateIdleTest.SendNextBagTest() in C:\Users\Frank Adcock\Documents\noes_3\src\NOESTest\Business\Control\Rollformers\RollformerStateIdleTest.cs:line 18
版本详细信息

  • VS2015 14.0.25420.01更新3
  • Typemock 8.5.0.2
  • 测试框架Galio/MbUnit或Nunit 3.43
从我所读到的文档来看,Typemock应该是由NCrunch自动获取的,但这似乎并没有发生


欢迎任何帮助

免责声明,我在Typemock工作

首先,您是否在Typemock VS菜单中启用了“与其他运行程序集成”,以及在Typemock->Options->Mocking integration中启用了“启用模拟集成”和“启用自动链接”


您使用哪个版本的NCrunch?

我们已解决此问题,您将在下一版本中看到它。 作为目前的解决办法:

  • 在Typemock示例文件夹中找到“knownRunners.dat”
  • 添加两行:“nCrunch.EngineHost462.x64”、“nCrunch.EngineHost462.x86”
查看完整信息

告诉我是否有用