Testing Elixir
Effective and Robust Testing for Elixir and its Ecosystem
By: Andrea Leopardi, Jeffrey Matthias
Paperback | 27 July 2021
At a Glance
Paperback
RRP $87.35
$40.25
54%OFF
When will this arrive by?
Start with ExUnit: almost everything you need to write tests covering all levels of detail, from unit to integration, but only if you know how to use it to the fullest - we'll show you how. Explore testing Elixir-specific challenges such as OTP-based modules, asynchronous code, Ecto-based applications, and Phoenix applications.
Explore new tools like Mox for mocks and StreamData for property-based testing. Armed with this knowledge, you can create test suites that add value to your production cycle and guard you from regressions.
- Write Elixir tests that you can be proud of.
- Dive into Elixir's test philosophy and gain mastery over the terminology and concepts that underlie good tests.
- Create and structure a comprehensive ExUnit test suite, starting from the basics, and build comprehensive test coverage that will provide safety for refactoring and confidence that your code performs as designed.
- Use tests to make your software more reliable and fault tolerant.
- Explore the basic tool set provided by ExUnit and Mix to write and organize your test suite.
- Test code built around different OTP functionality.
- Isolate your code through dependency injection and by using Mox.
- Write comprehensive tests for Ecto projects, covering Ecto as a database tool as well as a standalone data validation tool.
- Test Phoenix channels from end to end, including authentication and joining topics.
- Write Phoenix controller tests and understand the concepts of integration testing in Elixir. Learn property-based testing with StreamData from the author who wrote the library.
What You Need:
To get the most out of this book, you will need to have installed Elixir 1.8 or later and Erlang/OTP 21 or later. In order to complete the relevant chapters, you will also need Ecto 3.1 or later, EctoSQL 3.1 or later and Phoenix 1.3 or later.
ISBN: 9781680507829
ISBN-10: 1680507826
Published: 27th July 2021
Format: Paperback
Language: English
Number of Pages: 220
Audience: Professional and Scholarly
Publisher: Pragmatic Bookshelf
Country of Publication: US
Dimensions (cm): 21.5 x 19 x 1.5
Weight (kg): 0.5
Shipping
Standard Shipping | Express Shipping | |
---|---|---|
Metro postcodes: | $9.99 | $14.95 |
Regional postcodes: | $9.99 | $14.95 |
Rural postcodes: | $9.99 | $14.95 |
How to return your order
At Booktopia, we offer hassle-free returns in accordance with our returns policy. If you wish to return an item, please get in touch with Booktopia Customer Care.
Additional postage charges may be applicable.
Defective items
If there is a problem with any of the items received for your order then the Booktopia Customer Care team is ready to assist you.
For more info please visit our Help Centre.