Elixir Testing Patterns: Phoenix Controller Testing (Part 7)
Master Phoenix controller testing with ConnCase, JSON API testing, authentication helpers, and CRUD endpoint patterns. Complete your Elixir testing journey.
Last 10 notes on Rakshan Shetty
Master Phoenix controller testing with ConnCase, JSON API testing, authentication helpers, and CRUD endpoint patterns. Complete your Elixir testing journey.
Organize Elixir tests with reusable helpers: StubHelper for mocks, AssertHelper for domain assertions, and SetupHelper for composable setup patterns.
Master the complete adapter pattern in Elixir: build behavior-based facades, organize stub variants, and test time-dependent logic with clock abstractions.
Master compile-time safe mocking with Mox: define contracts with @callback, swap implementations seamlessly, and verify interactions with expect/3 and stub/3.
Master test data creation with ExMachina factories and Faker: build vs insert, sequences for uniqueness, factory variants with struct!, and composed helpers for complex scenarios.
Master database test isolation with Ecto.Sandbox: run hundreds of parallel tests without conflicts using transaction-based isolation and automatic rollback.
Learn ExUnit fundamentals with real examples: describe blocks, setup callbacks, assertions, pattern matching, and test organization. Start testing Elixir apps today.
Recap of my Elixir talk at Mumbai's first-ever Global Elixir Meetup with 4 interactive LiveView demos showcasing concurrency and fault tolerance. Try them live!
How I publish multiple websites from a single Obsidian vault using Quartz with tag-based selective publishing. A production case study with git submodules, upstream-safe customization, and automated deployment.
Setting up Elixir dev environment with Nix Prerequisites nix - Follow this guide to install nix in your system direnv - helps to initialize nix on the shell when you cd into the project directory TLDR Fork rakshans1/elixir-starter by clicking on Use this template and you are good to go.