Skip to main content

gontest makes it easy to test workers and enqueue assertions without a real database.

Assert that business logic enqueues the right jobs:

gontest.Jobs[T] returns every enqueued job of kind T and an error for the first payload that cannot be decoded.

Unit-test a worker function without a database or pool:

Test scheduled jobs with a controllable clock:

Drive the in-memory driver directly — no database, no Docker, deterministic time:

Run an end-to-end flow in memory: