Using Cucumber + RSpec in a production environment

♀尐吖头ヾ 提交于 2020-01-02 22:02:28

问题


Have you used Cucumber in a production environment?

What problems did you find using it?

Would you recommend I use it?

I'm currently learning to use Cucumber with RSpec, I'm weighing up Pro's and Con's for using it in upcoming projects and would like some input. I will be using RSpec but I'm wondering if using Cucumber will be worth the extra time taken to write the tests.

Extra Information:

  • I don't deal with clients directly; however I do work in a team and deal with project managers who don't have much technical knowledge so I thought the readability of Cucumber tests would prove useful

  • The project sizes are medium to large, projects can have multiple phases and we maintain them

  • Time restrictions are pretty tight however I’m thinking the extra test coverage would hopefully catch more bugs reducing time overall

Any information would be great

Cheers


回答1:


Personally I don't use Cucumber.

I imagine there are great use cases but I find the idea of writing plain english 'cukes' - that I then have to essentially write ruby regular expressions for to turn the plain english tests into ruby that can be run just too much of an overhead. That said, if you have business analysts or even the customer able to write tests then Cucumber is great since they can write english and you just have to worry about making it work.

We've opted to use Steak which is built straight on top of Rspec2 and Capybara and lets us write straight ruby tests which we feel are just as descriptive without the extra overhead.



来源:https://stackoverflow.com/questions/8607680/using-cucumber-rspec-in-a-production-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!