ipeevski/pauseonfail

Codeception 暂停于失败的扩展

1.1.1 2020-08-20 05:36 UTC

This package is auto-updated.

Last update: 2024-09-20 15:03:34 UTC


README

此存储库展示了 Codeception 扩展 API 的用法。

Codeception 暂停于失败的扩展

在 Codeception 中进行验收测试时,当发生失败或错误时暂停是非常有用的,尤其是在开发测试本身时。它允许您检查状态并找到更好的方法来解决相同的问题,然后继续前进。

安装

  1. 通过 Composer 安装 Codeception
  2. 运行 composer require --dev ipeevski/pauseonfail
  3. 将扩展包含到 codeception.yml 配置文件中

示例

paths:
    tests: tests
    log: tests/_log
    data: tests/_data
    helpers: tests/_helpers
extensions:
    enabled:
      - Codeception\Extension\PauseOnFail
  1. 为了使暂停生效,您需要以调试模式运行 codeception,带有 --debug 标志

暂停

类: Codeception\Extension\PauseOnFail

如果测试遇到失败或错误,则暂停并显示控制台。