Excessibility.TelemetryCapture (Excessibility v0.14.0)

View Source

Telemetry-based automatic snapshot capture for LiveView tests.

Attaches to Phoenix LiveView telemetry events to automatically capture snapshots when LiveView events occur, with no test code changes required.

Summary

Functions

Attaches telemetry handlers for automatic snapshot capture.

Clears all captured snapshots.

Detaches telemetry handlers.

Retrieves all captured snapshots and clears the table.

Handles telemetry events and captures snapshots.

Writes captured snapshots to timeline.json.

Functions

attach()

Attaches telemetry handlers for automatic snapshot capture.

Call this before running tests to enable auto-capture.

clear_snapshots(test_name \\ nil)

Clears all captured snapshots.

detach()

Detaches telemetry handlers.

get_snapshots()

Retrieves all captured snapshots and clears the table.

handle_event(list, measurements, metadata, config)

Handles telemetry events and captures snapshots.

write_snapshots(test_name)

Writes captured snapshots to timeline.json.

Note: HTML snapshot files are NOT generated from telemetry capture. For real accessibility testing, use html_snapshot(view) in your tests to capture actual rendered HTML.