module

Mrcv::Runner::SpecAggregator

Handles spec list resolution for library targets, single-file degraded mode, and Alpine-safe CLI argument and harness generation.

Class methods

aggregate_specs(target : Core::ProjectTarget) : Array(String)

Returns discovered or pre-populated spec files for the given target, sorted.

Source
build_args(target : Core::ProjectTarget, mode : Core::ExecutionMode = Core::ExecutionMode::Fast) : Array(String)

Generates process arguments for direct compiler invocation.

Source
command_payload(target : Core::ProjectTarget, mode : Core::ExecutionMode = Core::ExecutionMode::Fast) : String

Generates a shell compilation payload string suitable for sh -c or container execution.

Source
discover_specs(root_path : String) : Array(String)

Discovers all *_spec.cr files under root_path/spec recursively, returning normalized relative paths sorted alphabetically.

Source
with_harness(root_path : String, specs : Array(String), & : String -> T) : T forall T

Generates a temporary synthetic harness file in spec/.mrcv_harness.cr, yields the relative path to the block, and cleans up the harness file afterwards.

Source