ghostwriter/testify

PHP代码自动化测试生成。

0.1.x-dev 2024-08-31 16:00 UTC

This package is auto-updated.

Last update: 2024-08-31 16:05:36 UTC


README

Automation Supported PHP Version GitHub Sponsors Code Coverage Type Coverage Psalm Level Latest Version on Packagist Downloads

PHP代码自动化测试生成。

警告

此项目尚未完成,仍在开发中。

安装

您可以通过composer安装此包

composer require ghostwriter/testify --dev

如果觉得这个仓库有用,请给它加星标 ⭐️

您也可以通过加星标 (🌟) 来方便以后查找此仓库。

用法

使用 testify 命令并指定要生成测试的目录路径。

vendor/bin/testify --verbose --dry-run

命令

Description:
  Generate missing Tests.

Usage:
  bin/testify [options] [--] [<source> [<tests>]]

Arguments:
  source                The path to search for missing tests. [default: "src"]
  tests                 The path used to create tests. [default: "tests"]

Options:
  -d, --dry-run         Do not write any files.
  -f, --force           Overwrite existing files.
  -h, --help            Display help for the given command. When no command is given display help for the bin/testify command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

示例

vendor/bin/testify app tests --dry-run

vendor/bin/testify app/Middleware --dry-run --verbose

vendor/bin/testify # default path is `src`

致谢

更新日志

请参阅 CHANGELOG.md 了解最近更改的详细信息。

许可协议

请参阅 LICENSE 了解此项目的许可协议。

安全

请参阅 SECURITY.md 了解安全披露流程。