Effective Testing with RSpec 3

Effective Testing with RSpec 3

"Our tests are broken again!" "Why does the suite take so long to run?" "What value are we getting from these tests anyway?" Solve your testing problems by building and maintaining quality software with RSpec - the popular BDD-flavored Ruby testing framework. This definitive guide from RSpec's lead developer shows you how to use RSpec to drive more maintainable designs, specify and document expected behavior, and prevent regressions during refactoring. Build a project using RSpec to design, describe, and test the behavior of your code. Whether you're new to automated tests or have been using them for years, this book will help you write more effective tests. 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. What You Need: To follow along with the book, you'll need Ruby 2.2+. The book will guide you through installing RSpec 3 and setting up a new project to use it.

Download Now

Author
Publisher Pragmatic Bookshelf
Release Date
ISBN 1680503464
Pages 491 pages
Rating 4/5 (63 users)

More Books:

Effective Testing with RSpec 3
Language: en
Pages: 491
Authors: Myron Marston
Categories: Computers
Type: BOOK - Published: 2017-08-30 - Publisher: Pragmatic Bookshelf

GET EBOOK

"Our tests are broken again!" "Why does the suite take so long to run?" "What value are we getting from these tests anyway?" Solve your testing problems by buil
Effective Testing with Rspec 3: Build Ruby Apps with Confidence
Language: en
Pages: 275
Authors: Marston
Categories: Computers
Type: BOOK - Published: 2017-02-25 - Publisher: Pragmatic Bookshelf

GET EBOOK

Build and maintain quality software with RSpec, the popular BDD-flavored Ruby testing framework. This definitive guide from RSpec's lead developer shows you how
Agile Web Development with Rails 6
Language: en
Pages: 597
Authors: Sam Ruby
Categories: Computers
Type: BOOK - Published: 2020-02-10 - Publisher: Pragmatic Bookshelf

GET EBOOK

Learn Rails the way the Rails core team recommends it, along with the tens of thousands of developers who have used this broad, far-reaching tutorial and refere
Docker for Rails Developers
Language: en
Pages: 325
Authors: Rob Isenberg
Categories: Computers
Type: BOOK - Published: 2019-02-14 - Publisher: Pragmatic Bookshelf

GET EBOOK

Docker does for DevOps what Rails did for web development--it gives you a new set of superpowers. Gone are "works on my machine" woes and lengthy setup tasks, r
Rails, Angular, Postgres, and Bootstrap
Language: en
Pages: 459
Authors: David B. Copeland
Categories: Computers
Type: BOOK - Published: 2017-06-22 - Publisher: Pragmatic Bookshelf

GET EBOOK

Achieve awesome user experiences and performance with simple, maintainable code! Embrace the full stack of web development, from styling with Bootstrap, buildin
Encyclopedia of Software Engineering Three-Volume Set (Print)
Language: en
Pages: 1872
Authors: Phillip A. Laplante
Categories: Computers
Type: BOOK - Published: 2010-11-22 - Publisher: CRC Press

GET EBOOK

Software engineering requires specialized knowledge of a broad spectrum of topics, including the construction of software and the platforms, applications, and e
Complete Guide to Test Automation
Language: en
Pages: 542
Authors: Arnon Axelrod
Categories: Computers
Type: BOOK - Published: 2018-09-22 - Publisher: Apress

GET EBOOK

Rely on this robust and thorough guide to build and maintain successful test automation. As the software industry shifts from traditional waterfall paradigms in
How to Engineer Software
Language: en
Pages: 1168
Authors: Steve Tockey
Categories: Computers
Type: BOOK - Published: 2019-09-10 - Publisher: John Wiley & Sons

GET EBOOK

A guide to the application of the theory and practice of computing to develop and maintain software that economically solves real-world problem How to Engineer
Cumulated Index to the Books
Language: en
Pages: 1280
Authors:
Categories: American literature
Type: BOOK - Published: 1999 - Publisher:

GET EBOOK

Federal Register
Language: en
Pages:
Authors:
Categories: Administrative law
Type: BOOK - Published: 1945-02 - Publisher:

GET EBOOK