Team City中的赛普拉斯测试日志太冗长

时间:2019-04-24 21:29:39

标签: teamcity cypress

我们在Team City中运行赛普拉斯测试,测试的输出非常冗长。当我直接在代理计算机上运行测试时,我看不到这种冗长的日志记录,可能是由于Team City造成的。

小样本(有成千上万个样本):

cypress:https-proxy Making intercepted connection to 60378
cypress:server:server Got UPGRADE request from /__socket.io/?EIO=3&transport=websocket
cypress:server:timers queuing timer id 5 after 85000 ms
cypress:server:timers child received timer id 5
cypress:server:socket socket connected
cypress:server:timers clearing timer id 5 from queue { '3': { args: [], ms: 30000, cb: [Function: timeoutTimeout] }, '5': { args: [], ms: 85000, cb: [Function] } }
cypress:server:timers queuing timer id 6 after 85000 ms
cypress:server:timers child received timer id 6
cypress:server:timers clearing timer id 6 from queue { '3': { args: [], ms: 30000, cb: [Function: timeoutTimeout] }, '6': { args: [], ms: 85000, cb: [Function] } }
cypress:server:timers queuing timer id 7 after 85000 ms
cypress:server:timers queuing timer id 8 after 1000 ms
cypress:server:timers clearing timer id 8 from queue { '3': { args: [], ms: 30000, cb: [Function: timeoutTimeout] }, '7': { args: [], ms: 85000, cb: [Function] }, '8': { args: [], ms: 1000, cb: [Function: timeoutTimeout] } }
cypress:server:timers child received timer id 7
cypress:server:timers child received timer id 8

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

这些是赛普拉斯自己的 debug 消息 - 只有在 DEBUG 环境变量设置为匹配模式(即 *cypress:*)时才会记录这些消息。它们与 teamcity 记录器无关。

覆盖构建配置中的 env.DEBUG 构建参数并将其设置为空字符串,或者(以防构建中的其他内容需要将其设置为 *取消设置它只是在构建步骤中的启动时,例如

env -u DEBUG npm run cypress  -- --reporter teamcity