parent v0.7.0 Periodic.Test View Source

Helpers for testing a periodic job.

See the "Testing" section in Periodic documentation for details.

Link to this section Summary

Functions

Subscribes to telemetry events of the given scheduler.

Sends a tick signal to the given scheduler.

Link to this section Functions

Link to this macro

assert_periodic_event(telemetry_id, event, metadata \\ quote do _ end, measurements \\ quote do _ end)

View Source (macro)

Waits for the given telemetry event.

Link to this function

observe(telemetry_id)

View Source
observe(any()) :: :ok

Subscribes to telemetry events of the given scheduler.

Link to this macro

refute_periodic_event(telemetry_id, event, metadata \\ quote do _ end, measurements \\ quote do _ end)

View Source (macro)

Asserts that the given telemetry event won't be emitted.

Sends a tick signal to the given scheduler.