Two tests, same moment.
Neither sees the other.
Neither sees the other.
test "checkout"
PubSub
Registry
DB transaction
GenServer ×3
test "refund"
PubSub
Registry
DB transaction
GenServer ×3
Developer tool · Open source · Elixir
Arena
Keeps async Elixir tests isolated, even when your code spawns processes.
The problem, in plain terms
Fast test suites run tests in parallel and wrap each one in a database transaction. But when the code under test starts background processes, those processes can’t see the test’s data — so teams either slow everything down or live with flaky tests. Arena gives every test its own isolated world.
- Isolates
- PubSub, Registry names and database connections per test
- Works with
- Ecto, Phoenix LiveView and Channels
No build log here — the repository and its README are the source of truth. Any story about Arena is listed under Writing.