Effective Testing with RSpec 3

Build Ruby Apps with Confidence



Bookstore > Books > Effective Testing with RSpec 3

Effective Testing with RSpec 3
Buy
Preview
Price$20.32 - $28.43
Rating
AuthorsMyron Marston, Ian Dees
PublisherThe Pragmatic Programmers
Published2017
Pages354
LanguageEnglish
FormatPaper book / ebook
ISBN-101680501984
ISBN-139781680501988
EBook Hardcover Paperback

RSpec has been downloaded more than 100 million times and has inspired countless test frameworks in other languages. Use this influential Ruby testing framework to iteratively develop a project with the confidence that comes from well-tested code. This book guides you through creating a Ruby project with RSpec, and explores the individual components in detail.

Start by learning the basics of installing and using RSpec. Then build a real-world JSON API, using RSpec throughout the process to drive a BDD-style outside-in workflow. Apply an effective test strategy to write fast, robust tests that support evolutionary design through refactoring. The rest of the book provides the definitive guide to RSpec's components. Use rspec-core's metadata to slice and dice your spec suite. Dig into rspec-expectations' matchers: compose them in flexible ways, specify expected outcomes with precision, and diagnose problems quickly with the help of good failure messages. Write fast, isolated tests with rspec-mocks' test doubles while pushing your code toward simpler interfaces.

The authors, with a combined 20 years of automated testing experience, share testing wisdom that will lead to a fun, productive testing experience.


  1. (5 books)


4 5 24

Similar Books


Instant Mock Testing with PowerMock

Instant Mock Testing with PowerMock

Writing good unit tests can be hard in situations where we have to deal with static, final, or private methods. Sometimes, even a good design is sacrificed for the sake of testability. A mocking framework's ability to create mocks for almost any scenario enables us to focus on accurately programming for a business environment.Starting wit...
Java Testing with Spock

Java Testing with Spock

Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. You'll start with a quick overview of Spock and work through writing unit tests using the Groovy language. You'll discover best practices for test design as you learn to write mocks, implement integration tests, use Spock's built-in BDD tes...
Web Penetration Testing with Kali Linux

Web Penetration Testing with Kali Linux

Kali Linux is built for professional penetration testing and security auditing. It is the next-generation of BackTrack, the most popular open-source penetration toolkit in the world. Readers will learn how to think like real attackers, exploit systems, and expose vulnerabilities.Even though web applications are developed in a very secure ...
Android Application Programming with OpenCV 3

Android Application Programming with OpenCV 3

Android Application Programming with OpenCV 3 is a practical, hands-on guide to computer vision and mobile app development. It shows how to capture, manipulate, and analyze images while building an application that combines photography and augmented reality. To help the reader become a well-rounded developer, the book covers OpenCV (a com...
OGRE 3D 1.7 Application Development Cookbook

OGRE 3D 1.7 Application Development Cookbook

OGRE (Object-oriented Graphics Rendering Engine) 3D is a scene-oriented, flexible 3D engine written in C++ designed to make it easier and more intuitive for developers to produce applications utilizing hardware-accelerated 3D graphics.Graphics application development with OGRE 3D may start small, but may soon balloon into monstrously comp...
Beginning Java EE 6 with GlassFish 3, 2nd Edition

Beginning Java EE 6 with GlassFish 3, 2nd Edition

Java Enterprise Edition (Java EE) continues to be one of the leading Java technologies and platforms from Oracle (previously Sun). Beginning Java EE 6 Platform with GlassFish 3, Second Edition is this first tutorial book on the final version of the Java EE 6 Platform.Step by step and easy to follow, this book describes many of the Java EE...