io.cucumber 和 info.cukes 有什么区别 [英] what is the difference between io.cucumber and info.cukes

查看:39
本文介绍了io.cucumber 和 info.cukes 有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Cucumber 集成 BDD.但我真的很困惑 io.cucumberinfo.cukes 库之间有什么区别.以及使用哪一个以及何时使用.

I am trying to integrate BDD using Cucumber. But I am really confused what is the difference between io.cucumber and info.cukes libraries. And which one to use and when.

我尝试阅读和理解 github README.md 文件仍然无法引起注意或尾巴.

I tried to read and understand the github README.md file still can't make heads or tails.

更进一步,我不确定什么是 cucumber-jvm.为什么我们需要 cucumber-junit(独立的 junit 库还不够用).

Still further I am not sure what is cucumber-jvm. Why do we need cucumber-junit (can't the standalone junit library suffice).

提前致谢.非常感谢任何帮助.

Thanks in advance. Any help is much appreciated.

推荐答案

有关详细信息,请参阅发行说明.- https://github.com/cucumber/cucumber-jvm/blob/master/CHANGELOG.md.

Refer to the release notes for more details. - https://github.com/cucumber/cucumber-jvm/blob/master/CHANGELOG.md.

黄瓜 2 发生了实质性的变化.更多信息请参阅 - https://cucumber.io/blog/2017/08/29/announcing-cucumber-jvm-2-0-0

There has been substantial changes in cucumber 2. Refer to this for more - https://cucumber.io/blog/2017/08/29/announcing-cucumber-jvm-2-0-0

io.cucumber 和 info.cukes 是 Maven 组 ID.info.cukes 适用于 1.2.5 之前的 Cucumber 版本.最新版本在 io.cucumber2.0.0 开始.如发行说明中所述,还有一个新版本 3,在 github 中包含更多好东西.

io.cucumber and info.cukes are Maven group ids. info.cukes was for Cucumber version till 1.2.5. The latest version are in io.cucumber starting from 2.0.0. There is also a new version 3 with more goodies in github with the master as mentioned in the release notes.

groupid 被改变的原因,因为 gherkin 也同样改变了 groupid.

The reason the groupid was changed because gherkin has changed the groupid similarly.

cucumber-jvm是Cucumber框架的java实现.还有许多其他语言的实现 - https://github.com/cucumber.

cucumber-jvm is the java implementation of Cucumber framework. there are many other implementations in other languages - https://github.com/cucumber.

当您在测试类之上使用 @RunWith(Cucumber.class) 时,这意味着一个 专用运行器,它将执行功能文件.junit 的默认运行器不会让您到达任何地方,尽管可能会出现一些例外情况.

When you use the @RunWith(Cucumber.class) on top of the test class, it means that a specialized runner is being used which will execute the feature files. The default runner of junit will not get you anywhere, though might cough up some exceptions.

这篇关于io.cucumber 和 info.cukes 有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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