Documentation
¶
Overview ¶
Package diff implements the `gherkinator diff` subcommand: it compares a set of YAML test plans against an on-disk features directory and reports missing, differing, and orphan feature files.
Index ¶
Constants ¶
const ( ExitClean = 0 ExitDiff = 1 ExitPlanError = 2 )
Exit codes returned by Run. They are re-exported so the cmd package can propagate them via os.Exit.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(inputFiles []string, featuresDir string, opts common.FilterOptions, show bool, out, errOut io.Writer) int
Run compares the rendered plans (built from inputFiles and filtered by opts) against the .feature files in featuresDir, writing any human-readable classifications to errOut and (when show is true) unified diffs for differing pairs to out.
It returns the appropriate exit code: ExitClean on no diffs, ExitDiff when any classification fires, or ExitPlanError when a plan could not be loaded, validated, or rendered.
Types ¶
This section is empty.