英文:
TFS and golang continuous Integration
问题
我正在使用集成了git的本地TFS服务器来跟踪我的golang应用程序的文件。我想定义构建(build)、测试(test)和部署(deploy)步骤,但是我找不到任何工具来实现这一点。
我该如何为项目定义构建和测试步骤,并在团队的网站上显示测试结果?谢谢。
英文:
I'm tracking the files of my golang app
in a local TFS server
integrated with git
. I want to define build
, test
, and deploy
steps but I can't find any tool for that.
How can I define a build
and test
step for the project that shows the test results
in the Team's web site
? thank you.
答案1
得分: 1
你可以在TFS2017中使用vNext构建系统,并在构建定义中添加命令行任务来运行构建和测试,就像在本地机器上所做的那样。然后,添加一个"发布测试结果"任务,将测试结果发布到TFS,这样你就可以从TFS网站上查看测试结果。一个限制是,目前"发布测试结果"任务只支持四种测试结果格式:JUnit、NUnit、VSTest和XUnit。
英文:
You can use the vNext build system in TFS2017 and add Command Line task in the build definition to run the build and test just like what you do on local machine:
And then add a "Publish Test Result" task to publish the test result to TFS so that you can check the test result from the TFS Website. A limitation is that "Publish Test Result" task only support four Test Result Format for now: JUnit, NUnit, VSTest and XUnit.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论