cdjojn / reportportal-phpunit
Report Portal 与 PHPUnit 协作的基本类
0.0.3
2022-03-16 14:55 UTC
Requires
- phpunit/phpunit: ^9.5.0
- reportportal/basic: 1.0.x-dev
This package is not auto-updated.
Last update: 2024-09-26 23:05:46 UTC
README
EPAM Report Portal 的 PHPUnit 代理
如何使用。
例如使用:https://github.com/Mikalai-Kabzar/phpUnit-test-framework
步骤
1) 在你的 composer.json 文件中添加依赖。
"minimum-stability": "dev",
"require-dev": {
"reportportal/phpunit" : "*"
},
例如:https://github.com/Mikalai-Kabzar/phpUnit-test-framework/blob/master/composer.json
2) 使用监听器配置更新 phpunit.xml 文件。
<listeners>
<listener class="agentPHPUnit" file="vendor/reportportal/phpunit/src/agentPHPUnit.php">
<arguments>
<string>25667b03-8760-469f-ad41-fc0b9c4b67fa</string>
<string>https://rp.epam.com</string>
<string>mikalai_kabzar_personal</string>
<string>.000+00:00</string>
<string>test launch name !!!</string>
<string>test launch description !!!</string>
</arguments>
</listener>
</listeners>
agentPHPUnit 监听器变量的说明。
- 1 - UUID.
- 2 - Report Portal server URL.
- 3 - Project name.
- 4 - Time Zone.
- 5 - Test Launch name.
- 6 - Test launch description.
例如:https://github.com/Mikalai-Kabzar/phpUnit-test-framework/blob/master/phpunit.xml