Testing
Property-Based Testing in Elixir with StreamData
Example-based tests verify specific cases: given input A, expect output B.
Testing
Example-based tests verify specific cases: given input A, expect output B.
Testing
Elixir ships with a built-in testing framework called ExUnit. Unlike many languages where testing frameworks are third-party add-ons, ExUnit is part of the Elixir standard library and is the default choice for testing Elixir applications. This guide covers everything you need to write effective tests from day
Testing
Testing code that depends on external services, databases, or complex collaborators requires isolation — you want to test one unit at a time.
Testing
Testing code that calls external services — payment processors, email providers, third-party APIs — presents a challenge.
Testing
Flaky tests are rarely random. In most codebases, the cause is isolation failure: test A leaves state that breaks test B.
Testing
WebSocket testing is one of those areas where developers confidently say "it works fine" until they hit production and discover their chat app drops messages under load, silently ignores malformed frames, or lets unauthenticated clients subscribe to private channels. REST APIs have decades of tooling and conventions. WebSockets
Testing
Integration tests live and die by their data. A test that creates an order needs a product to exist. That product needs a category.
Testing
Integration tests that run against a shared staging environment are a liability.
Testing
Infrastructure code breaks. An S3 bucket gets configured with public ACLs. A security group rule opens port 22 to the world.
Testing
Every engineering team has experienced the same painful scenario: a test suite passes flawlessly on one developer's laptop, fails on another's, and produces yet different results in CI. The root cause is almost always environment drift — different Node versions, mismatched library versions, missing system dependencies, or
Testing
Socket.io wraps WebSocket with rooms, namespaces, auto-reconnect, and a binary protocol — all of which require specific testing approaches.
Testing
Real-time APIs — WebSocket, Server-Sent Events, gRPC streaming — are increasingly common but still poorly supported by most API testing tools.