fr05t1k / clover-to-bitbucket
将Clover覆盖率报告到Bitbucket
1.0.3
2019-03-26 08:02 UTC
Requires
- ext-json: *
- ext-simplexml: *
- nategood/httpful: ^0.2.20
- symfony/console: >=3.2 <5.0
- symfony/filesystem: >=3.2 <5.0
Requires (Dev)
- phpunit/phpunit: ^6.5
- roave/security-advisories: dev-master
This package is auto-updated.
Last update: 2024-08-27 00:29:45 UTC
README
#Bitbucket代码覆盖率
PHP命令,用于将覆盖率数据转换为并发布到Bitbucket服务器。
当您想在pull请求中的diff中显示Clover测试覆盖率信息时,这很有用。
在此处获取Bitbucket插件: https://bitbucket.org/atlassian/bitbucket-code-coverage
测试运行后安装并调用此命令。
用法
clover-to-bitbucket coverage:report \
<coverage.file> \
<bitbucket.url> \
<bitbucket.user> \
<bitbucket.password> \
<bitbucket.commit.id> \
[<project.directory>]
最后一个参数是可选的,默认为当前工作目录。这用于将Clover xml中的绝对路径转换为相对于仓库根的路径。
您可以使用用户名和密码或创建个人访问令牌并使用它作为密码来与Bitbucket进行身份验证。只需要读取权限。
如何创建令牌: https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html