[英]NCrunch integration with Typemock failing to run tests
I am getting the following exception from NCrunch when tests are being run. 我正在运行测试时从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
Version Details 版本细节
From what I can read of the documentation Typemock is supposed to be automatically picked up by NCrunch, but this does not appear to be happening. 从我可以阅读的文档中可以看出,Typemock应该由NCrunch自动获取,但这似乎并没有发生。
Any assistance welcomed 欢迎任何援助
We fixed this issue and you gonna see it in our next release. 我们修复了这个问题,你会在我们的下一个版本中看到它。 As a workaround for now:
作为现在的解决方法:
See here a full info 在这里查看完整信息
Tell me if it helps. 告诉我它是否有帮助。
Disclaimer, I work in Typemock. 免责声明,我在Typemock工作。
First of all, have you enabled "Integrate with Other Runners" in Typemock VS menu and "Enable Mocking integration" and "Enable Auto Linking" in Typemock->Options->Mocking Integration? 首先,您是否在Typemock VS菜单中启用了“与其他跑步者集成”,并在Typemock-> Options-> Mocking Integration中启用了“启用模拟集成”和“启用自动链接”?
Which version of NCrunch you use? 您使用的是哪个版本的NCrunch?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.