简体   繁体   English

今天有什么关于行为驱动的开发和验收测试?

[英]What to use today about Behaviour-Driven Development and Acceptance Tests?

Some years ago I´ve tried to work with BDD and some tools of Acceptance tests, like Selenium/Web-driver , Fitnesse and JBehave . 几年前,我曾尝试使用BDD和一些验收测试工具,如Selenium / Web-driverFitnesseJBehave

I´d like to back to work with that in my current project, so I would like to know what the community is using of tools to perform that! 我想在我当前的项目中重新使用它,所以我想知道社区正在使用什么工具来执行它!

My project is based on Java. 我的项目基于Java。

Acceptance tests tools ? 验收测试工具? BDD tools? BDD工具? Should I consider a scripting language ? 我应该考虑使用脚本语言吗?

The most successful teams are using conversations and not worrying too much about the tools! 最成功的团队正在使用对话,而不是过多担心工具!

Having said that, here are a few Java BDD tools that are in use in the community: 话虽如此,这里有一些在社区中使用的Java BDD工具:

  • JBehave* (still) JBehave *(仍然)
  • Cucumber for the JVM (I don't think it's been as maven-ized as JBehave) JVM的黄瓜(我认为它不像JBehave那样)
  • Fitnesse (though I recommend putting "Slim" behind it instead of "Fit") Fitnesse(虽然我建议把“Slim”放在它后面而不是“Fit”)
  • Custom DSLs (it's not that hard). 自定义DSL(它并不难)。

Selenium is still the automation tool of choice for Java and the web. Selenium仍然是Java和Web的首选自动化工具。

*I helped write JBehave. *我帮助写了JBehave。 One reason we got into it in the first place was because the acceptance tests we saw using scripts were such an astonishing mess. 我们首先进入它的一个原因是因为我们使用脚本看到的验收测试是如此令人惊讶的混乱。 Meh. 咩。 Also, you can't collaborate with the business or have conversations about scripts. 此外,您无法与业务协作或进行有关脚本的对话。 I strongly recommend having conversations first**, then worrying about the tools! 我强烈建议首先进行对话**, 然后担心这些工具!

** If you're working on your own, buy a rubber duck. **如果你自己工作,买一只橡皮鸭。

I strongly recommend spockframework + Geb . 我强烈建议spockframework + 盖布 You need groovy support though. 你需要时髦的支持。 We have lot of tests running as part of CI every night. 我们每晚都有很多测试作为CI的一部分运行。 The reports are in junit format (being enhanced to be used by business users soon) and hence can be published to servers like Hudson or Sonar. 这些报告采用junit格式(增强后很快就会被业务用户使用),因此可以发布到Hudson或Sonar等服务器上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM