How to Read This Book

Testing Elixir — by Andrea Leopardi, Jeffrey Matthias (8 / 80)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Who This Book Is For | TOC | About the Code 👉

Each chapter in the book addresses a different aspect of testing in Elixir.

In Chapter 1, Unit Tests, we’ll get going and learn about the “smallest” kind of testing: unit testing. We will cover how and when to write unit tests, the tools to write them in Elixir, and techniques to isolate code under test.

In Chapter 2, Integration and End-to-End Tests, we’ll move on to testing different components of your system that interact with each other. We’ll learn how to test components together, as well as how to isolate components to run more focused integration tests. We’ll also touch on end-to-end testing, that is, testing the whole system from the perspective of an outside entity.

In Chapter 3, Testing OTP, we’ll learn about testing one of Erlang and Elixir’s most unique features, OTP. OTP and processes in general present quite a few challenges when it comes to testing. We’re going to talk about those and learn techniques to make testing these abstractions easier.

In Chapter 4, Testing Ecto Schemas, and Chapter 5, Testing Ecto Queries, we’ll talk about testing code that uses the Ecto framework to validate data and interact with databases. Ecto is a widely used library in the Elixir landscape, and the community has created patterns on how to test code that makes use of it.

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.