<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Test-Doubles on Scholion</title><link>https://scholion.thluiz.com/tags/test-doubles/</link><description>Recent content in Test-Doubles on Scholion</description><generator>Hugo -- gohugo.io</generator><language>pt-BR</language><copyright>© 2026</copyright><lastBuildDate>Wed, 18 Nov 2026 11:45:11 +0000</lastBuildDate><atom:link href="https://scholion.thluiz.com/tags/test-doubles/index.xml" rel="self" type="application/rss+xml"/><item><title>My New Favorite Elixir Testing Trick</title><link>https://scholion.thluiz.com/notes/elixir-testing-with-fake-printer-and-messages/</link><pubDate>Mon, 16 Nov 2026 20:10:00 +0000</pubDate><guid>https://scholion.thluiz.com/notes/elixir-testing-with-fake-printer-and-messages/</guid><description>Author shows how to replace IO-heavy modules with a fake that sends messages to the test process, allowing ExUnit &lt;code&gt;assert_receive&lt;/code&gt; assertions similar to Ruby test doubles.</description></item><item><title>Unit Tests in Elixir - Part 2</title><link>https://scholion.thluiz.com/notes/unit-tests-in-elixir-part-2-testing-genserver/</link><pubDate>Mon, 16 Nov 2026 20:09:25 +0000</pubDate><guid>https://scholion.thluiz.com/notes/unit-tests-in-elixir-part-2-testing-genserver/</guid><description>Explains how to unit test Elixir functions that talk to other processes by injecting dependencies, and by treating GenServer casts as commands and calls as queries.</description></item><item><title>Unit testing Angular with Jest</title><link>https://scholion.thluiz.com/notes/unit-testing-angular-with-jest-basics-doubles/</link><pubDate>Tue, 24 Oct 2023 14:26:38 +0000</pubDate><guid>https://scholion.thluiz.com/notes/unit-testing-angular-with-jest-basics-doubles/</guid><description>Explains how to set up Jest in an Angular project, write narrow unit tests, and use doubles and Angular’s DI/testing utilities to isolate dependencies and detect bugs early.</description></item><item><title>You Don't Hate Mocks; You Hate Side-Effects</title><link>https://scholion.thluiz.com/notes/you-dont-hate-mocks-you-hate-side-effects/</link><pubDate>Sun, 05 Jul 2020 14:11:19 +0000</pubDate><guid>https://scholion.thluiz.com/notes/you-dont-hate-mocks-you-hate-side-effects/</guid><description>The article argues that excessive mock expectations are a signal of side-effects in the design. Refactoring away from those side-effects often removes the mock and leads to simpler, more focused tests.</description></item></channel></rss>