likesistemas/codeception-github-reporter

报告 pull request 的单元测试数据。

0.5.0 2021-03-12 11:53 UTC

This package is auto-updated.

Last update: 2024-09-12 19:50:24 UTC


README

安装

composer require likesistemas/codeception-github-reporter --dev

Codeception

启用 Like\Codeception\GithubReporter 扩展来运行测试

在 Linux/MacOS 上

VAR={VALUE} php vendor/bin/codecept run --ext "Like\Codeception\GithubReporter"

在 Windows 上

set VAR={VALUE}&& php vendor/bin/codecept run  --ext "Like\Codeception\GithubReporter"

或者,您可以添加 Like\Codeception\GithubReporter 扩展到套件或全局配置。

extensions:
  enabled:
    - Like\Codeception\GithubReporter

环境变量

  • GITHUB_OWNER: 仓库所有者
  • GITHUB_REPO: 仓库名称
  • GITHUB_PR_NUMBER: 仓库的 pull request 编号
  • GITHUB_TOKEN: 将发布评论的用户 GitHub 令牌
  • IMGBB_TOKEN=cfac55381b42ee1e55bf17fa185b3b51
  • TEST_LANG: 语言
  • TEST_TITLE: 标题中显示的消息
  • TEST_FOOTER: 显示包含 PHP 版本的页脚
  • IMGBB_TOKEN: 上传接受测试图片的令牌