我有一个使用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空和删除的文件,但我仍然得到了可怕的隔离模式.
我正在使用zip文件
ZipFile.CreateFromDirectory(DeployDirectory, ZipDirectory + @"\DatabaseDeploy.zip", CompressionLevel.Fastest, true);
Run Code Online (Sandbox Code Playgroud)
我想包含基目录,所以我需要将CompressionLevel值作为第三个参数的重载.但我并不关心这一点,我只是希望它的工作方式与刚刚接受字符串,字符串的重载相同.
有谁知道?
我有以下代码:
if (a || b)
{
X();
}
if (a)
{
Y();
}
Run Code Online (Sandbox Code Playgroud)
我可以以某种方式合并这两个if语句吗?
我有一个GatsbyJS静态站点--prefix-paths
.将pathPrefix
被设置为/environment/test
在gatsby-config.js
.它被部署到运行Traefik的码头工人群中.
将以下标签添加到服务使一切运行正常:
traefik.frontend.rule=PathPrefixStrip:/environment/test
然后我可以浏览/environment/test
并点击我的GatsbyJs网站.
但是我发现它很奇怪,因为后端是使用路径前缀构建的.
添加以下标签不起作用:
traefik.frontend.rule=PathPrefix:/environment/test
不应该用PathPrefix
而不是PathPrefixStrip
吗?
我在继承链中有三个类:
AddActorUITests : WebTestBase : IntegrationTestBase
Run Code Online (Sandbox Code Playgroud)
不过,我会以某种方式通过像命名约定的信号WebTestBase
,从继承IntegrationTestBase
,使得开发人员编写代码AddActorUITests
不必检查WebTestBase
,以确认它来自继承IntegrationTestBase
.
有什么建议?