mag*_*ell 10 jenkins vstest.console.exe
我有一个使用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.
Run Code Online (Sandbox Code Playgroud)
任何runsettings文件肯定没有变化.
也许服务器在运行之间重启.是否有任何与vstest.console.exe相关的更新导致此问题?某些默认的runsettings文件是否有变化?
我也试着不带/代码覆盖率开关运行测试,我试图指定.runsettings与DataCollectors空和删除的文件,但我仍然得到了可怕的隔离模式.
这可能意味着您的测试运行程序需要其他一些 .NET 平台或不同的体系结构。有些东西迫使它在隔离模式下运行。您是否更改了项目或解决方案的配置管理或其他内容?尝试/noisolation在 MSTest.exe 上指定开关。