AutoTest sits in the background and watches the files in a Rails project. When any
file is changed, AutoTest runs the appropriate tests immediately. It is pretty smart
about which tests need to be run, and even watches test fixtures and other dependencies
for changes. If you follow the test-driven development methodology, running
AutoTest is a great way to force yourself to stay green. Get started with the
following:
$ sudo gem install ZenTest
$ cd my_rails_app
$ autotest -rails
Further Reading
There are many resources, both free and paid, for learning the version control systems
mentioned in this chapter. For Subversion, there is Version Control with Subversion
(http://svnbook.red-bean.com/), which is available both for free online and as
a print book from O??™Reilly. Also available is Pragmatic Version Control Using Subversion
(http://pragmaticprogrammer.com/titles/svn2/index.html), which is more of a
tutorial than a reference.
CVS has similar options available. The book Open Source Development with CVS is
available under a GPL license online at http://cvsbook.red-bean.com/. The print book
is also distributed by O??™Reilly. The Pragmatic Programmers??™ offering is Pragmatic Version
Control Using CVS (information available at http://pragmaticprogrammer.com/
starter_kit/vcc/index.html).
* http://www.zenspider.com/ZSS/Products/ZenTest/
Further Reading | 323
Similarly, the best book about Mercurial is free.
Pages:
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489