- eBook:Testing Elixir: Effective and Robust Testing for Elixir and its Ecosystem
- Author:Andrea Leopardi, Jeffrey Matthias
- Edition:1 edition
- Data:July 6, 2021
- Pages:220 pages
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.
Code with high confidence that you are getting the most out of your test suite, with the right tools that make testing your code a pleasure and a valuable part of your development cycle.
2. Integration and End-to-end Tests
3. Testing OTP
4. Testing Ecto Schemas
5. Testing Ecto Queries
6. Testing Phoenix: Static Interfaces
7. Testing Phoenix: Streaming Interfaces
8. Property-based Testing
Download Testing Elixir: Effective and Robust Testing for Elixir and its Ecosystem PDF or ePUB format free