首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Team City中的Cypress测试日志过于冗长

Team City中的Cypress测试日志过于冗长
EN

Stack Overflow用户
提问于 2019-04-25 05:29:39
回答 1查看 471关注 0票数 0

我们在Team City中运行Cypress测试,测试的输出非常冗长。当我直接在代理机器上运行测试时,我没有看到如此详细的日志记录,所以这可能是由于Team City的原因。

小样本(有数千个这样的例子):

代码语言:javascript
复制
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

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2021-02-22 16:18:24

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

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

代码语言:javascript
复制
env -u DEBUG npm run cypress  -- --reporter teamcity
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55838837

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档