Skip to main content
  • 609 Accesses

Abstract

In this brief chapter, we will take a look at the tools available and conventions employed in the Ruby world for keeping one’s code in order. We’ll kick off with a section devoted to rake. Understanding the mechanics of this task-oriented, make-like tool can really save you time in the long run—especially where common housekeeping tasks are concerned. From here we’ll move on to a section on unit testing, where we’ll look at some step-by-step examples and make the case that such testing is about as simple asit can be in Ruby. Finally, we’ll cover the documentation idioms and the magic of rdoc.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 44.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2007 André Ben Hamou

About this chapter

Cite this chapter

(2007). Testing and Documentation. In: Practical Ruby for System Administration. Apress. https://doi.org/10.1007/978-1-4302-0194-6_11

Download citation

Publish with us

Policies and ethics