TFS构建过程中的phpunit代码覆盖率 [英] phpunit code coverage in TFS build process

查看:75
本文介绍了TFS构建过程中的phpunit代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好


我有一个PHP项目(在laravel中) - 我可以运行phpunit并生成Clover覆盖率报告


I需要在TFS 2015内部展示测试结果和覆盖率报告 - 例如以下是Java Maven项目



我没有看到将读取Clover报道报告的PHPunit构建步骤


还有其他方法可以做到吗?


谢谢

解决方案

嗨sammjyan787,



感谢您在此发帖。



启用"启用代码覆盖率"后在测试任务中,构建完成后,构建摘要中会有一个代码覆盖图表,您也可以单击代码覆盖率结果来下载.codecoverage文件。



但是TFS中没有任务可以让我们现在将.codecoverage转换为.xml报告文件,你可以尝试在命令行中调用convert。关于此问题,您可以将您的uservoice提交到以下链接,TFS产品团队正在那里收听您的
语音:


https://visualstudio.uservoice.com/forums/330519-team-services



最好的问候


Limitxiao Gao


Hi

I have a PHP project (in laravel) - I can run phpunit and generate a Clover coverage report

I need to show the test results and the coverage report in TFS 2015 on-premise - e.g. the following is for a Java Maven project

I don't see a PHPunit build step that will read a Clover coverage report

Is there another way to do this?

Thanks

解决方案

Hi sammjyan787,

Thank you for posting here.

After you enable the "Code Coverage Enabled" in the test task, there will be a chart of code coverage in the build summary when the build is finished, you could also click the code coverage result to download the .codecoverage file.

But there is no task in TFS for us to convert the .codecoverage to .xml report file now, you could try to call the convert in command line. About this issue, you could submit your uservoice to the following link, TFS Product Team is listening to your voice there:

https://visualstudio.uservoice.com/forums/330519-team-services

Best Regards

Limitxiao Gao


这篇关于TFS构建过程中的phpunit代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆