Skip to main content
  • Book
  • © 2017

Test Driven Development in Ruby

A Practical Introduction to TDD Using Problem and Solution Domain Analysis

Apress

Authors:

  • A unique book on test driven development (TDD) using Ruby

  • Learn the fundamentals of TDD in less than 10 hours

  • Written by an expert software professional and trainer

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.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

Other ways to access

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

Table of contents (9 chapters)

  1. Front Matter

    Pages i-xxi
  2. The Basics

    • Bala Paranj
    Pages 1-55
  3. Katas

    • Bala Paranj
    Pages 57-124
  4. Techniques in TDD

    • Bala Paranj
    Pages 125-152
  5. Importance of Test Cases

    • Bala Paranj
    Pages 153-162
  6. Character-to-Number Conversion

    • Bala Paranj
    Pages 163-169
  7. Conway’s Game of Life

    • Bala Paranj
    Pages 171-220
  8. Gilded Rose

    • Bala Paranj
    Pages 221-262
  9. Dealing with Third-Party APIs

    • Bala Paranj
    Pages 263-276
  10. Pair Ranking

    • Bala Paranj
    Pages 277-284
  11. Back Matter

    Pages 285-288

About this book

Learn the basics of test driven development (TDD) using Ruby. You will carry out problem domain analysis, solution domain analysis, designing test cases, and writing tests first. These fundamental concepts will give you a solid TDD foundation to build upon. Test Driven Development in Ruby is written by a developer for developers.


The concepts are first explained, then a coding demo illustrates how to apply the theory in practice. At the end of each chapter an exercise is given to reinforce the material. Complete with working files and code samples, you'll be able to work alongside the author, a trainer, by following the material in this book.




What You Will Learn


  • Carry out problem domain analysis, solution domain analysis, designing test cases, and writing tests first
  • Use assertions
  • Discover the structure of a test and the TDD cycle
  • Gain an understanding of minimal implementation, starter test, story test, and next test
  • Handle refactoring using Ruby
  • Hide implementation details
  • Test precisely and concretely
  • Make your code robust 



Who This Book Is For


Experienced Ruby programmers or web developers with some prior experience with Ruby.

Authors and Affiliations

  • Atlanta, USA

    Bala Paranj

About the author

Bala Paranj has a masters degree in electrical engineering from Wichita State University. He has been working in the IT industry since 1996. He started his career as Technical Support Engineer and became a Web Developer using Perl, Java and Ruby. He has consulted for companies in the USA, Australia and Jamaica in finance, telecommunications and other domains.


He has professionally worked as a developer using TDD and pair programming for startups. He is the founder of Silicon Valley Ruby Meetup. He has been organizing Ruby, Rails and TDD related events since 2007. He has taught TDD Bootcamps and TDD tutorials for Silicon Valley Ruby Meetup members for more than 3 years. 


He published an article in JavaWorld in 1999 on the Command Pattern. Java Tip 68: Learn how to implement the Command pattern in Java. He is also the content creator for the Whizlabs OOAD test simulator. This is the exam simulator for students preparing for IBM 486 Object-Oriented Analysis and Design with UML. He is the author of self-published book Rails 4 Quickly.

Bibliographic Information

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.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

Other ways to access