GoodJob.Testing (good_job v1.0.0)

Copy Markdown View Source

Testing helpers for GoodJob.

This module provides a unified interface to all testing utilities. It re-exports functions from specialized modules for convenience.

Usage

use GoodJob.Testing.JobCase  # For job-related tests
use GoodJob.Testing.RepoCase # For database tests

# Or import specific modules
import GoodJob.Testing.Assertions
import GoodJob.Testing.Helpers

Summary

Functions

assert_enqueued(job_module, args, opts \\ [])

See GoodJob.Testing.Assertions.assert_enqueued/3.

assert_performed(job)

See GoodJob.Testing.Assertions.assert_performed/1.

perform_jobs(job_module \\ nil)

See GoodJob.Testing.Helpers.perform_jobs/1.

refute_enqueued(job_module, args \\ %{}, opts \\ [])

See GoodJob.Testing.Assertions.refute_enqueued/3.