問題: Visual Studio 2015のSP1をインストールした後、コマンド ラインから汎用テストを実行できません。
コマンドラインと出力は次のとおりです。
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "S:\Tests\MyTests.dll" "/Settings:S:\Tests\MyTest.runsettings" "/ListTests:S:\Tests\MyTests.GenericTest" /InIsolation /Enablecodecoverage /Logger:Console
一般的なテストの実行
"..\packages\NUnit.Runners.2.6.4\tools\nunit-console.exe"
コマンドライン引数付き
"..\MyNUnitProject.nunit" "/noshadow" "/process=Separate" "/Config=UnitTests" "/xml=..\nunit.UnitTests.results.xml"
vstest.console.exe は次の出力を返します。
[exec] Microsoft (R) Test Execution Command Line Tool Version 14.0.24720.0
[exec] Copyright (c) Microsoft Corporation. All rights reserved.
[exec] The following Tests are available:
[exec] Warning: No test is available in s:\Tests\MyTests.dll, s:\Tests\MyTests.GenericTest. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again. Additionally, you can try specifying '/UseVsixExtensions' command if the test discoverer & executor is installed on the machine as vsix extensions and your installation supports vsix extensions. Example: vstest.console.exe myTests.dll /UseVsixExtensions:true
[exec] Starting test discovery, please wait...
[exec] Warning: No test is available in s:\Tests\MyTests.dll, s:\Tests\MyTests.GenericTest. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again. Additionally, you can try specifying '/UseVsixExtensions' command if the test discoverer & executor is installed on the machine as vsix extensions and your installation supports vsix extensions. Example: vstest.console.exe myTests.dll /UseVsixExtensions:true
Visual Studio 2015 の SP1 をインストールする前は、すべて正常に動作していました。テスト結果とコード カバレッジを取得しました。