Building a Rails app from scratch - What should be the ideal workflow?
I am going to develop a Rails app pretty soon. Currently I have nothing but an idea + few wireframes. I would like to know how shall I proceed?
At what stage should I implement/write the following
- Cucumber features
- Rspec tests
- Code
- Refactoring code
What gems/plugin开发者_StackOverflow中文版s do you use? [ For common tasks ]
If you're going to be using Cucumber, you should:
- Write the cucumber features
- Run them and make sure they fail accordingly
- Write just enough code to make those features pass.
From my understanding, the Cucumber framework isn't really meant to test existing code, but is more a part of the development process. So I suppose the overall workflow should probably be something like:
- Cucumber stuff
- Write some code
- Functional tests (such as RSpec, as you mentioned)
- Repeat as needed
- Code touch-ups, refactors
Edit: As for gems/plugins, it really depends on what your app is going to be doing.
精彩评论