NC运行ch 与 Typemock 的集成未能 运行 测试
NCrunch integration with Typemock failing to run tests
当测试 运行.
时,我从 NC运行ch 收到以下异常
*** 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 应该由 NC运行ch 自动获取,但这似乎并没有发生。
欢迎任何帮助
免责声明,我在 Typemock 工作。
首先,您是否启用了Typemock VS菜单中的"Integrate with Other Runners"和Typemock->Options->Mocking Integration中的"Enable Mocking integration"和"Enable Auto Linking"?
您使用哪个版本的 NCrunch?
我们解决了这个问题,您会在我们的下一个版本中看到它。
作为目前的解决方法:
- 在 Typemock Examples 文件夹中找到一个 "knownRunners.dat"
- 向其中添加 2 行:"nCrunch.EngineHost462.x64"、"nCrunch.EngineHost462.x86"
查看here完整信息
如果有帮助请告诉我。
当测试 运行.
时,我从 NC运行ch 收到以下异常*** 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 应该由 NC运行ch 自动获取,但这似乎并没有发生。
欢迎任何帮助
免责声明,我在 Typemock 工作。
首先,您是否启用了Typemock VS菜单中的"Integrate with Other Runners"和Typemock->Options->Mocking Integration中的"Enable Mocking integration"和"Enable Auto Linking"?
您使用哪个版本的 NCrunch?
我们解决了这个问题,您会在我们的下一个版本中看到它。 作为目前的解决方法:
- 在 Typemock Examples 文件夹中找到一个 "knownRunners.dat"
- 向其中添加 2 行:"nCrunch.EngineHost462.x64"、"nCrunch.EngineHost462.x86"
查看here完整信息
如果有帮助请告诉我。