Introduction

“Our tests are broken again!” “Why does the suite take so long to run?” “What value are we getting from these tests anyway?”

The years go by and the technologies change, but the complaints about automated tests are the same. Teams try to improve the code and end up fighting test failures. Slow test times drag down productivity. Poorly written tests do a bad job communicating, guiding the software design, or catching bugs.

No matter whether you’re new to automated tests or have been using them for years, this book will help you write more effective tests. By effective, we mean tests that give you more value than the time spent writing them.

We’ll be using the RSpec 3 framework to explore the art of writing tests. Every aspect of ...

Get Effective Testing with RSpec 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.