Skip to main content

review.gate.start

review.gate.start(spec, directory, reports)

Begin a gate session in an empty review directory.

Reads the mutation files (babregen mutate --out, format 1), checks that each module is the one the mutants were made from, and writes gate.toml, BRIEF-first.md, BRIEF-second.md, .gitignore (sealed/) and sealed/.

Parameters

Name Type Description Default
spec RegenSpec The loaded records of the project. required
directory Path | str The review directory, below regen/runs/; empty or absent. required
reports Sequence[Path | str] One or more mutation files of the project. required

Returns

Name Type Description
Started Started The number of files and survivors.

Raises

Name Type Description
ConfigurationError For a file without format, a module whose hash differs from module_sha256, a unit the project does not record, no survivor at all (“no gate session”), a file outside the project or a directory that is not empty.

Examples

from babregen.review.gate import start

print(start.__name__)
start