mudasobwa

mudasobwa

Creator of Cure

A simple yet quite effective approach to make your library a charm to test. DummyWorker sends a message back to the testing process instead of performing a real action.

Help To Test Your Library

First 4 of 4 Posts Switch mode

qhwa

qhwa

Awesome post! Thanks for sharing!

I’m very happy to learn such a test strategy.
One question, how does it work for async tests?

mudasobwa

mudasobwa OP

Creator of Cure

Generally, it requires no additional effort, that’s why I mentioned registering test processes on a per-message basis. There might be some caveats in particular cases, but there is no silver bullet and all of them could usually be easily resolved in place.

Messages are the actor model in a nutshell which is born to survive async environment :slight_smile:

qhwa

qhwa

Agreed. Some libraries make refers and check with refs. Is that idiomatic?

mudasobwa

mudasobwa OP

Creator of Cure

Yes, make_ref/0 is perfectly idiomatic, and Broadway does exactly that too.

— All posts loaded —

Where Next? Top

Trending in Blog Posts Top

bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
mudasobwa
I am seeing a lot of aplications of Argumentum ad Vericundiam in software discussions. They do link some piece of writing and point us to...
New
ryanzidago
Hi all, In this article, I make the case for each test owning its setup. Usually I forbid my AI agents to use the setup callbacks; I mu...
New
zorn
As I’ve leaned into AI code generation on LocalCents, the volume I ship has climbed, and my worry shifted from any single change to the l...
New
pckrishnadas88
A while back, I had to process millions of database updates in a legacy system that was already hitting its 64 GB RAM limit, so scaling t...
New
smaller_infinity
I recently figured out how to the the Rust hotpath profiling crate running in an elixir benchmark script (for profiling NIFs). I had some...
New
pckrishnadas88
This article demonstrates how to build a minimal stateful process using only Elixir’s core concurrency primitives: spawn/1, send/2, recei...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement