RSSAmplifier

Blog

Rakshan Shetty

Last 10 notes on Rakshan Shetty

rakshanshetty.inRSS feed ↗10 posts

Latest posts

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.

Elixir Testing Patterns: Centralized Test Helpers (Part 6)

Organize Elixir tests with reusable helpers: StubHelper for mocks, AssertHelper for domain assertions, and SetupHelper for composable setup patterns.

Elixir Testing Patterns: Adapter Pattern and Stubs (Part 5)

Master the complete adapter pattern in Elixir: build behavior-based facades, organize stub variants, and test time-dependent logic with clock abstractions.

Elixir Testing Patterns: Mocking with Mox (Part 4)

Master compile-time safe mocking with Mox: define contracts with @callback, swap implementations seamlessly, and verify interactions with expect/3 and stub/3.

Elixir Testing Patterns: Test Data with ExMachina (Part 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.

Elixir Testing Patterns: Database Isolation with Ecto.Sandbox (Part 2)

Master database test isolation with Ecto.Sandbox: run hundreds of parallel tests without conflicts using transaction-based isolation and automatic rollback.

Elixir Testing Patterns: ExUnit Fundamentals (Part 1)

Learn ExUnit fundamentals with real examples: describe blocks, setup callbacks, assertions, pattern matching, and test organization. Start testing Elixir apps today.

Bet on Elixir

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!

Building a Multi-Site Publishing System with Quartz and Obsidian

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 with Nix

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.