Testing Elixir 1st edition by Andrea Leopardi, Jeffrey Matthias – Ebook PDF Instant Download/DeliveryISBN: 1680507826, 9781680507829
Full download Testing Elixir 1st edition after payment.

Product details:
ISBN-10 : 1680507826
ISBN-13 : 9781680507829
Author: Andrea Leopardi, Jeffrey Matthias
Elixir offers new paradigms, and challenges you to test in unconventional ways. 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.
Testing Elixir 1st Table of contents:
- Introduction
- Why Do We Need a Book for Testing in Elixir?
- Who This Book Is For
- How to Read This Book
- About the Code
- Online Resources
- Unit Tests
- Defining the Unit in Unit Test
- Testing with ExUnit
- Organizing Your Tests
- Creating Comprehensive Test Coverage
- Testing Pure Functions
- Refactoring Toward Pure Functions
- Isolating Code
- Wrapping Up
- Integration and End-to-End Tests
- What Is an Integration Test?
- Testing Against Real External Dependencies
- Dependency Doubles
- Interfacing to External Dependencies with Behaviours
- Test Doubles: Stubs, Mocks, and Fakes
- The Hidden Benefits of Dependency Doubles
- Testing the Actual Interaction with Services
- End-to-End Tests
- Wrapping Up
- Testing OTP
- Testing a GenServer
- Controlling the Life Cycle of OTP Processes in Tests
- Testing Periodic Actions
- Testing Singleton Resources
- Testing Resiliency
- Wrapping Up
- Testing Ecto Schemas
- Testing Your Schema Through Changesets
- Refactoring to Increase Test Maintainability
- Creating a SchemaCase for Shared Test Code
- Testing an Ecto Schema as a Data Validator
- Testing an Ecto Schema for Database Interactions
- Testing Your Schema Through Database Calls
- Setting Up Sandbox Mode
- Wrapping Up
- Testing Ecto Queries
- Creating a Factory to Help with Setup
- Adding a DataCase to Help with Setup
- Testing Create
- Testing Read
- Testing Update
- Testing Delete
- Wrapping Up
- Testing Phoenix
- The Role of Phoenix in Your Application
- Testing JSON-Based APIs
- Testing Server-Rendered HTML Applications
- Testing Phoenix Channels
- Wrapping Up
- Property-Based Testing
- Property-Based Testing in Practice in the Elixir Standard Library
- Example-Based Tests
- Introducing Randomness and Property-Based Testing
- Data Generation
- Writing Properties
- Shrinking
- Strategies for Designing Properties
- Stateful Property-Based Testing
- Wrapping Up
- When To Randomize Test Data
- Test Life Cycle
- The Life Cycle of an ExUnit Suite
- Test Cases
- Executing Tests
- An Example and a Drawing
- Test Coverage
- Built-In Test Coverage
- Coveralls and the Excoveralls Library
People also search for Testing Elixir 1st:
property based testing elixir
oban testing elixir
property testing elixir
deterministic simulation testing elixir
snapshot testing elixir
Tags: Testing Elixir, Andrea Leopardi, unconventional ways, integration, Jeffrey Matthias


