2016-10-07 21 views
1

テストの実行中にNCrunchから次の例外が発生します。テストの実行に失敗した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によって自動的に選択されるはずですが、これは起こっていないようです。

どのような援助が

答えて

2

この問題は修正されており、次のリリースでご覧になれます。

  • Typemock例フォルダ内の "knownRunners.dat"
  • はそれに2行追加して下さい:: "nCrunch.EngineHost462.x64"、 "nCrunch.EngineHost462.x86"
  • を今の回避策として

それが助け場合、完全な情報

を教えてくださいhereを参照してください。

1

免責を歓迎し、私はTypemockで働きます。

まずTypemock VSメニューで「他のランナーと統合」を有効にして、Typemock-> Options-> Mocking Integrationで「Mocking統合を有効にする」と「自動リンクを有効にする」を有効にしましたか?

どのバージョンのNCrunchを使用していますか?

関連する問題