黄瓜 - 黄瓜对黄瓜测试 [英] Cucumber-junit vs cucumber-testng

查看:297
本文介绍了黄瓜 - 黄瓜对黄瓜测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用cucumber-jvm,cucumber-spring和selenium webdriver,cucumber-testng / cucumber-junit创建一个自动化项目的新框架。

We are creating new framework using cucumber-jvm, cucumber-spring and selenium webdriver, cucumber-testng/cucumber-junit for an automation project.

我正在寻找的好处是使用cucumber-testng而不是cucumber-junit。但是没有找到太多信息。

I was looking for benefits using cucumber-testng instead of cucumber-junit. But didn't find much info.

我知道除了用于断言,没有什么好处,不管我们使用cucumber-testng还是cucumber-junit。

As I know besides using for assertions, there are not much benefits whether we use cucumber-testng or cucumber-junit.

使用cucumber-testng而不是cucumber-junit有什么优点/缺点吗?

Are there any advantages/disadvantages in using cucumber-testng instead of cucumber-junit?

请让我知道。 / p>

Please let me know.

推荐答案

如果这是一个新项目,我会坚持cucumber-junit。它将更容易设置和理解,加上有很多文档。

If this is a new project, I would stick to cucumber-junit. It will be easier to set up and understand, plus there is a lot of documentation on it.

如果你已经有一个TestNG项目需要扩展使用Cucumber或强烈地使用TestNG功能(它的功能比JUnit更多),我会使用cucumber-testng )。

I would use cucumber-testng if you already had a TestNG project that you wanted to extend to use Cucumber or felt strongly about utilizing TestNG functionality (which has more features than JUnit).

以下是关于JUnit vs. TestNG的一些信息: https://www.mkyong.com/unittest/junit-4-vs-testng-comparison/

Here is some information on JUnit vs. TestNG: https://www.mkyong.com/unittest/junit-4-vs-testng-comparison/

这篇关于黄瓜 - 黄瓜对黄瓜测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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