spinach vs cucumber for BDD in rails

后端 未结 4 1871
野的像风
野的像风 2021-02-02 13:49

I am starting on BDD. Was wondering which would be better to start with Cucumber or Spinach. My impression is that Spinach is new off the block. Look here

Which one shou

4条回答
  •  爱一瞬间的悲伤
    2021-02-02 14:15

    DISCLAIMER: I'm a Spinach mantainer.

    If you're starting with BDD I'd highly recommend two books:

    • The RSpec book
    • The Cucumber book

    I think it's important to learn all the BDD and TDD process (outside-in etc..) and then choose the tool you feel more comfortable with.

    Having said that, Cucumber has a huge community, but a lot of things are also aplicable to Spinach, since what they have in common is Gherkin.

    As for flexibility of use I would say both are really flexible, but I (obviously) prefer Spinach as every feature it's just a Ruby class, where you can include modules, inherit from other classes and so on (this also applies to APIs integration).

    I you want, you can take a look at the spinach-rails-demo and see how everything works.

提交回复
热议问题