I just started using the BDD application in Rails, but I'm not sure what are the best practices and workflows? And what other things do I really need to test my project, such as step definitions, controllers, models, and views? Do I need to check all this?
I generally think of Cucumber as a way to test integration in your application. Combined with Webrat, you can test workflows, views, etc. For unit tests, you will want to go to a lower level and test your models with rspec only. You can also run some functional tests on controllers, and I probably won't use Cucumber for this.
Here are a few videos:
Ryan Bates has some good Railscasts on these topics:
, , Rspec, Rails , Shoulda. , , , Rspec. .
, , , - , , , pw, pw, right pw, , ..
, ZenTest gem. $ autotest, .
$ autotest
Source: https://habr.com/ru/post/1711708/More articles:My UIViewController "lies" about its center property - iphoneHow to call Java process from Windows Powershell? - javaAn enumeration array containing a dictionary gives unexpected output - enumerationEmacs Color Syntax Configuration - eclipseHow to implement a one-time (per user) message in a web application? - databaseJava: refactoring static constants - javaOpen My Computer Properties in a C # Windows Application - c #Problems creating a Java Mobile Application project - java-meHow to implement a list, set and map in a zero design? - javaNull-free "maps": Is the callback solution slower than tryGet ()? - javaAll Articles