Rspec Essentials

Develop testable, modular, and maintainable Ruby software for the real world using RSpec

    Cover of Rspec Essentials

    EPUB · English

    Price and availability

    EPUB eBookUS store

    $37.99

    Sign in to buy

    You’ll review your order and final price before payment.

    Download from your library after delivery. Protected eBooks need a compatible reading app.

    For personal use under the eBook licence.

    Territorial availability

    Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

    Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.

    Format
    EPUB
    DRM
    Not stated by the publisher
    Language
    English
    Publisher
    Packt Publishing
    Published
    21 April 2016
    ISBN
    9781784392956
    Subjects

    About this book

    Develop testable, modular, and maintainable Ruby software for the real world using RSpecKey Features[*] Explore the concept of testability and how to implement tests that deliver the most value[*] Maximize the quality of your Ruby code through a wide variety of tests[*] Master the real-world tradeoffs of testing through detailed examples supported by in-depth discussionBook DescriptionThis book will teach you how to use RSpec to write high-value tests for real-world code. We start with the key concepts of the unit and testability, followed by hands-on exploration of key features. From the beginning, we learn how to integrate tests into the overall development process to help create high-quality code, avoiding the dangers of testing for its own sake. We build up sample applications and their corresponding tests step by step, from simple beginnings to more sophisticated versions that include databases and external web services. We devote three chapters to web applications with rich JavaScript user interfaces, building one from the ground up using behavior-driven development (BDD) and test-driven development (TDD). The code examples are detailed enough to be realistic while simple enough to be easily understood. Testing concepts, development methodologies, and engineering tradeoffs are discussed in detail as they arise. This approach is designed to foster the reader s ability to make well-informed decisions on their own.What you will learn[*] Identify a unit of software for the purposesof testing[*] Manage test states with hooks, fixtures,and mocks[*] Handle external web services in testsusing various techniques[*] Configure RSpec flexibly and cleanly usingsupport code and environment variables[*] Interact with rich web apps in testsusing Capybara[*] Build the right feature with behavior-drivendevelopment[*] Customize matchers and failure messages[*] Verify correct development and productionenvironmentsWho this book is forThis book is aimed at the software engineer who wants to make their code more reliable and their development process easier. It is also aimed at test engineers who need to automate the testing of complex systems. Knowledge of Ruby is helpful, but even someone new to the language should find it easy to follow the code and tests.]]>

    Bibliographic data © Gardners Books Ltd.