我有一个使用 vstest.console.exe 运行测试的 Jenkins 服务器。突然之间,在没有更改工作区内容的两个构建之间,它报告说它正在隔离模式下运行:
10:52:38 D:\Program Files (x86)\Jenkins\workspace\Trunk>"D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" "src\Test\bin\Test.dll" /TestCaseFilter:"TestCategory!=ExcludeFromBuildServer" /Enablecodecoverage /UseVsixExtensions:false /Logger:trx
10:52:38 Microsoft (R) Test Execution Command Line Tool Version 14.0.25420.1
10:52:38 Copyright (c) Microsoft Corporation. All rights reserved.
10:52:38
10:52:38 Starting test execution, please wait...
10:52:38 Warning: Using Isolation mode to run the tests as diagnostic data adapters were enabled in the runsettings. Use the /inIsolation parameter to suppress this warning.
任何运行设置文件肯定没有变化。
也许服务器在运行之间重新启动。是否有任何与 vstest.console.exe 相关的更新导致此问题?某些默认运行设置文件是否有更改?
我还尝试在没有 /Codecoverage 开关的情况下运行测试,并尝试指定一个 .runsettings 文件,其中 DataCollectors 为空并被删除,但我仍然得到可怕的隔离模式。