EchoLab is a tiny OTP application whose test suite exercises every Supertester feature end to end. It is intentionally small so the tests stay focused on Supertester itself rather than app logic.
What This Example Covers
The EchoLab test suite demonstrates:
Supertester.ExUnitFoundationisolation, tags, telemetry/log/ETS extensionsSupertester.UnifiedTestFoundationAPI (including contamination detection)Supertester.Envcustom environment moduleSupertester.TestableGenServersync handler injectionSupertester.OTPHelpersfor isolated GenServers and supervisorsSupertester.GenServerHelpersfor state access, sync casts, concurrency, and recoverySupertester.SupervisorHelpersfor restart strategy checks and tree validationSupertester.Assertionsfor OTP-aware assertions and leak checksSupertester.PerformanceHelpersfor performance and mailbox monitoringSupertester.ChaosHelpersfor crash injection and chaos suitesSupertester.ConcurrentHarnessandSupertester.PropertyHelpersSupertester.MessageHarnessfor mailbox tracingSupertester.TelemetryandSupertester.TelemetryHelpersSupertester.LoggerIsolationandSupertester.ETSIsolation
Running the Tests
cd examples/echo_lab
mix deps.get
mix test
Layout
lib/contains a small counter, workers, supervisors, and ETS helpers.test/contains focused tests that map directly to Supertester modules.test/support/contains theTestableCounterused by sync and harness examples.