27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Reason #4: emphasis on testing<br />

of your application and can be used as a set of instructions explaining exactly how this<br />

feature works. This is a great way to verify that the feature is precisely what was<br />

requested.<br />

As you write these tests for the application, you provide a safety net for if things go<br />

wrong. This collection of tests is referred to as a test suite. When you develop a new feature,<br />

you have the tests that you wrote before the feature to prove that it’s working as<br />

you originally thought it should. If you want to make sure that the code is working at<br />

some point in the future, then you have the test suite to fall back on.<br />

If something does go wrong and it’s not tested, you’ve got that base to build<br />

upon. You can write a test for an unrealized situation—a process known as regression<br />

testing—and always have that test in the future to ensure that the problem does not<br />

crop up again.<br />

545

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!