Is Cucumber Worth It?
Explore how Cucumber fits into Rails integration testing by focusing on user behavior scenarios. Learn its strengths in acceptance testing, tips for writing effective scenarios, and its role in differentiating integration from unit tests.
We'll cover the following...
We'll cover the following...
Cucumber’s worth
Cucumber’s worth depends on what “it” is. Cucumber is a beneficial acceptance-test framework, provided our expectations of it are reasonable. It’s a lousy unit-test framework, and if we try to use it for unit testing, we’ll hate it and will possibly stop eating salads to avoid cucumbers, which is bad for our health.
We should use Cucumber for the relatively minimal goals of writing integration tests at the level of user behavior ...