TFS和golang的持续集成

huangapple go评论149阅读模式
英文:

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。

TFS和golang的持续集成

英文:

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:
TFS和golang的持续集成
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.

huangapple
  • 本文由 发表于 2017年3月27日 16:03:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/43040945.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定