likesistemas / codeception-github-reporter
报告 pull request 的单元测试数据。
0.5.0
2021-03-12 11:53 UTC
Requires
- php: >=5.6
- ext-curl: *
- guzzlehttp/guzzle: ^6.0 | ^7.0
Requires (Dev)
- codeception/codeception: ^4.1
- codeception/module-asserts: ^1.0.0
- codeception/module-db: ^1.1
- codeception/module-phpbrowser: ^1.0
- codeception/module-rest: ^1.2
- codeception/module-webdriver: ^1.2
- phpunit/phpunit: ^5.7 || ^9.0
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: 上传接受测试图片的令牌