【问题标题】:cypress run: keep test runner opencypress run:保持测试运行器打开
【发布时间】:2018-05-16 07:44:11
【问题描述】:

我如何运行我的Cypress 测试:

cypress run --headed

但在测试结束时保持test runner 打开,就像using the Cypress Test Runner in interactive mode (cypress open) 一样?

我更喜欢 cypress run --headed 而不是 cypress open,后者需要用户交互才能启动测试。

(在持续集成中运行 Cypress 测试的上下文,但使用 xvfbvnc 服务器,因此一旦测试完成,仍然可以使用测试运行器。

【问题讨论】:

  • 这个功能我已经 opened an issue 了,考虑到它只是一个 cli 更改,可能会在下一个补丁版本中出现
  • 感谢您的反馈,太好了!

标签: cypress


【解决方案1】:

您应该可以运行:
cypress run --headed --no-exit
从版本 3.0.2 开始,下一个补丁版本。见PR here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-26
    • 1970-01-01
    • 2023-01-23
    • 1970-01-01
    • 2015-10-08
    • 1970-01-01
    相关资源
    最近更新 更多