rspec - A struggle about TDD(BDD) in rails -


I am new to Ruby on Rail Development. I have read a book called Ruby on Rail Tutorial written by Michael Hart, who writes a test before implementing the function using RSPC. Although I do not think this is a good idea, it's a good idea. Since I already know what the content should contain in the page, I should write the code like these unnecessary stuff, 'It should be ...' I plan to write a blog to practice my rail skills But I suspect that I should write TDD or BDD and it will bring me some benefit

value Take that you have a big app and many developers can apply this application Connections are concurrently contribute. Apart from this, you have hundreds of modules and they have validation and calculation and all of them are very many. Will you test it manually and will the test be completely enough?

Here the place where TDD is really important with automation, I have become like you once and still (my part). But from time to time, I realize that I can not fully test because I do something forget and the test actually consumes time Of course, we try to not send a tester to save the development cost.

Here are the benefits that you will enjoy with TDD (BDD) in the long run:

Low flaw, better design, better API, simple design, less complexity, increasing productivity The more accessible code, etc. Source:

For me, I think the development of the environment capable of testing the integration with the outside rail; Testing the production server and production is enough because I am a single developer, but in the future, when I work with a team, I know that instead I need Unit Testing and all other tests.

I would like to suggest unit testing (which is sent along with rail) and cucumber for ease of choosing the unit test and later on when you think that you have your front with AJAX If you want to test-end, you can use Selenium / WebDriver.

I hope this will answer your question.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -