如何将Junit测试用例集成到TFS2015的构建过程中? [英] How to integrate Junit test case into build process in TFS2015?

查看:85
本文介绍了如何将Junit测试用例集成到TFS2015的构建过程中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软


我正在使用TFS2015进行构建+测试使用JUnit测试的Java项目作为其中的一部分。


是否有任何设施支持TFS2015中JUnit测试用例的测试自动化?


您是否有过将JUnit测试用例的测试用例注册到TFS2015测试数据库的经验?



谢谢


Recho沉

解决方案

嗨Recho Shen,



感谢您在此发帖。



我建议你可以尝试在VNext Build中使用Maven任务来运行和测试你的java项目使用Junit测试:


https:// www .visualstudio.com / zh-gb / docs / build / steps / build / maven


构建代理必须具有Maven功能。有关详细信息,请参阅以下博客:


https://blogs.msdn.microsoft.com/visualstudioalm/2015/11/24/testing-java-applications-with-visual-studio-team-服务/



最好的问候


Limitxiao Gao


Hi Microsoft

I am using TFS2015 to do build + test for a Java project with JUnit test as part of it.

Is there any facility support the test automation for JUnit test case in TFS2015?

Have u got experience to do test case registration for JUnit test case into TFS2015 test database?

Thanks

Recho Shen

解决方案

Hi Recho Shen,

Thank you for posting here.

I suggest that you could try to use the Maven task in VNext Build to run and test your java project with Junit test:

https://www.visualstudio.com/en-gb/docs/build/steps/build/maven

The build agent must have Maven capability. For more information, you could refer to the following blog:

https://blogs.msdn.microsoft.com/visualstudioalm/2015/11/24/testing-java-applications-with-visual-studio-team-services/

Best Regards

Limitxiao Gao


这篇关于如何将Junit测试用例集成到TFS2015的构建过程中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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