Elixir Testing Mock

Download Elixir Testing Mock PDF/ePub or read online books in Mobi eBooks. Click Download or Read Online button to get Elixir Testing Mock book now. This website allows unlimited access to, at the time of writing, more than 1.5 million titles, including hundreds of thousands of titles in various foreign languages.
Testing Elixir

Author: Andrea Leopardi
language: en
Publisher: The Pragmatic Programmers LLC
Release Date: 2021-07-13
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. 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. 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.
Elixir Programming Mastery: An In-Depth Exploration for Developers

Elevate your Elixir skills with "Elixir Programming Mastery: An In-Depth Exploration for Developers". This comprehensive guide is tailored for those keen on mastering Elixir, a powerful functional programming language. Delve into an extensive exploration of Elixir's core concepts and its application in building scalable and maintainable software systems. Spanning from the fundamentals of functional programming and data structures to advanced topics like concurrency, parallelism, and web application development with Phoenix, this book offers a detailed learning pathway suitable for developers at any stage. Explore critical Elixir features such as pattern matching, modules, functions, and Ecto for efficient database management. Harness Elixir’s robust concurrency model to build highly scalable applications and discover best practices for error handling, debugging, testing, and documentation. Whether you're a beginner aiming to understand the essentials or an experienced developer seeking to enhance your expertise in functional programming and concurrent systems, this book equips you with the insights and practical examples necessary to excel in Elixir programming. Embark on your journey into the world of Elixir and learn how to craft high-quality, fault-tolerant applications with "Elixir Programming Mastery: An In-Depth Exploration for Developers". Embrace the future of scalable and efficient software development now!
Erlang and Elixir for Imperative Programmers

Learn and understand Erlang and Elixir and develop a working knowledge of the concepts of functional programming that underpin them. This book takes the author’s experience of taking on a project that required functional programming and real-time systems, breaks it down, and organizes it. You will get the necessary knowledge about differences to the languages you know, where to start, and where to go next. Have you been told by your customer or manager that they heard good things about Erlang, you should use it for the next project? Never had to deal with functional programming or real-time systems? In 2014, the author, Wolfgang Loder, developed a repository for digital assets that had to deliver those assets in binary form quickly and reliably, being able to deal with at least hundreds of requests per second. Since he could decide the architecture and software stack of the solution, he immediately thought of Erlang and its libraries and started to evaluate this option. It was not long after that he discovered Elixir, which sits on top of the Erlang virtual machine and has features more palatable for non-functional programmers, although it is a functional programming language itself. Erlang and Elixir for Imperative Programmers gives you a basis for deciding whether the effort is viable for your next project. This book is partly a tale of the author's own experience and partly a description of the bigger and more subtle differences between Erlang/Elixir and languages such as C++, Java, and C#. What You'll Learn Discover functional programming, Erlang, and Elixir Work on service design and service features Set up your environment: deployment, development, and production Implement the service including public interface, asset processing, and deployment Use the patterns and concepts found in Erlang including type creation concepts and code structuring. Who This Book Is For Experienced and savvy programmers, coders, and developers new to Erlang and Elixir.