0

I am learning Ruby developement with Rspec and Cucumber. I have a hard time knowing when I have to switch from one to another. I know Rspec is used for logical errors while Cucumber, for structural/exceptions errors.

How can I know what type of error it gives? Is there a certain pattern of error reporting.

For example, expected ... is a logical error.

4

1 に答える 1

0

キュウリは通常、受け入れテストに使用されますが、内部では、ブラウザーの自動化にCapybaraステップを使用しています。これは、もちろんRspecでも使用できます。

だからそれはあなた次第です。受け入れテストにはCucumberを使用し、単体テストにはRspecを使用するか、すべてにRspecを使用できます。私は個人的に後者を選びますが、それは本当にあなた次第です。両方を試して、それがどのように機能するかを確認してください。

于 2012-06-14T15:34:02.483 に答える