NUnit Test Adapter for VS 2012 を使用すると、Visual Studio 2012 IDE 内からテスト エクスプローラーを介して NUnit テストを実行できます。ただし、そもそも NUnit テストを行う理由は、SharePoint 2010 に対して記述されたテストがあるためです (これらは単体テストではなく統合テストであることはわかっています)。 -bit client は、MSTest/VS がそれらを実行できないことを意味します。
NUnit テスト アダプターを使用して、Visual Studio のテスト エクスプローラーから SharePoint テストを実行できることを期待していましたが、エラー メッセージが引き続き表示されます。
SetUp failed for test fixture xyz
SetUp : System.IO.FileNotFoundException : The Web application at http://sp could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
これは、NUnit Test Adapter が 32 ビット プロセスとして実行されていることを示しています (プロセスはvstest.executionengine.x86.clr20.exe
.
Visual Studio 2012 で NUnit テスト アダプターとテスト エクスプローラーを使用して、SharePoint 2010 を対象とする NUnit テストを実行する方法はありますか?