Running Karate Test as part of github actions CICD pipeline but using Karate as VSCODE extension

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

Running Karate Test as part of github actions CICD pipeline but using Karate as VSCODE extension

问题

如果我们将Karate安装为VSCODE扩展程序,由于使用VSCODE扩展程序时无需进行编码设置(例如,在GitHub操作工作流中添加Maven依赖项时不会包含Karate,因为Karate已经在VSCODE扩展程序安装中工作),那么我们是否可以在GitHub操作CICD管道中运行Karate测试脚本/功能而不将其作为Maven依赖项的一部分?

如果您可以提供/分享示例或参考链接,将不胜感激。

谢谢。

目前正在探索Karate框架,并注意到Karate可作为VSCODE扩展程序使用,希望在GitHub操作CICD工作流中使用此扩展程序能够正常工作。

英文:

If we install Karate as VSCODE extension, as there was no coding setup required when using the VSCODE extension(e.g. karate in not added in the maven dependencies as karate works already with the vscode extension installation thus in the github action workflow when adding the maven dependencies karate will not be included). Can we then run the Karate test scripts/features in the github actions CICD pipeline without it being part of the maven dependencies?

Appreciate if you may please give/share an example or link for reference.

Thanks,

Currently exploring Karate Framework and saw the availability of Karate as VSCODE extension hoping that using this extension will work in the github action CICD workflow.

答案1

得分: 0

是的,一旦您在本地使用VS Code扩展程序开发并运行了测试,您可以在CI / CD流水线中运行相同的测试。

一种方法是使用独立的JAR包:https://github.com/karatelabs/karate/wiki/Get-Started:-Other-Runtime-Options

如果您与您的DevOps团队合作,您应该能够很快找出设置Karate的方法。许多团队还使用Docker。

英文:

Yes, once you have developed and run tests locally using the VS Code extension, you can run the same tests in a CI / CD pipeline.

One way to do this is use the Standalone JAR: https://github.com/karatelabs/karate/wiki/Get-Started:-Other-Runtime-Options

If you work with your DevOps folks, you should very quickly be able to figure out either a recipe to set up Karate. Many teams also use Docker.

huangapple
  • 本文由 发表于 2023年6月18日 22:28:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76501033.html
匿名

发表评论

匿名网友

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

确定