joetannenbaum/day
Composer 安装命令:
composer require joetannenbaum/day
包简介
Dusk-like integration testing for your CLI apps
README 文档
README
This package provides Dusk-like integration testing for your terminal commands. Under the hood, it requires the Unix expect command in order to function correctly.
Warning
This package is currently in active development. The API is subject to change.
Note
If you're testing Laravel commands this package currently supports only Symfony style commands, it has not been updated for Prompts yet.
Example
The following would run the bellows launch command from the bellows-tester directory and answer several questions as they appear in the terminal.
use Day\Day; use function Day\command; command('bellows launch') ->fromDir(__DIR__ . '/../../bellows-tester') ->question('Which server would you like to use', 'bellows-tester') ->question('App Name', 'Bellows Test') ->deny('Enable quick deploy') ->confirm('Launch now') ->waitFor('Launched!', 60) ->exec();
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-02