|
|
|
|
|
by jsnk
4843 days ago
|
|
I write tests primarily with Rspec for personal projects and Cucumber at work. I haven't worked with unit test at all. I like both Rspec and Cucumber. I use Rspec for personal projects because they are more backend Rails side heavy web app. And my company uses Cucumber because we found writing tests based on user behavior to make more sense. My problem with Rspec is in its error message, whether it is showing why the test failed or that the test code syntax is wrong. I noticed that Rspec is more prone to showing cryptic errors than Cucumber. I've seen some mind boggling error messages that doesn't really help user debug the code. For devs beginning TDD, I can understand why working with Rspec could be annoying. Even now, Rspec doesn't feel second nature to me. |
|