joetannenbaum/day 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-02