I'm reading the book Agile Web Development with Rails and most of the times, I skip the testing parts. I hate doing testing like this, I'm not sure why and it just feel weird to write tests codes like that. Giving that I don't fully understand how the testing really works in rails. And the test reporting just doesn't impress me so far.
So, how important is it to follow / use the build in te开发者_如何学Cst?
Really important. In Rails especially, testing is an integrated part of development and this is one of the things that makes Rails an Enterprise solution. Testing is a great way to make sure that your code behaves the way you expect it to behave. You may not understand why it's important now, but you will definitely see the benefits when refactoring your code, or a weird bug comes up.
Dynamic languages give you far too many ways to shoot yourself in the foot. Ruby is no exception. Test, test, and test again.
精彩评论