大话盒子 / codeception-ctrlc
允许通过按 `Ctrl+C` 安全终止运行
2.0.0-RC1
2015-11-20 12:24 UTC
Requires
- php: >=5.4.0
- ext-pcntl: *
- codeception/codeception: ~2.1.0
This package is not auto-updated.
Last update: 2024-09-14 18:26:05 UTC
README
Codeception 模块,允许通过按 Ctrl+C
安全终止运行
此模块将确保在测试拆卸期间发生的任何清理工作不会因用户按下 Ctrl+C 而中断。
安装
composer install "natterbox/codeception-ctrlc: ~1.0"
用法
在 tests/<SuiteName>.suite.yml
或 codeception.yml
中启用模块。
...
modules:
enabled:
...
- Codeception\Extension\CtrlC
...
config:
...
Codeception\Extension\CtrlC:
debug: true
...
只需在配置中添加即可享受此模块的好处。
请查看示例以进行演示。运行演示测试并按 Ctrl+C
。
重要提示:示例文件夹中的代码仅作为演示,并不是此模块最常见的使用场景。