mix client_utils.journey_coverage (client_utils v0.7.3)

View Source

Every journey stage passed in the last journeys run.

mix client_utils.journey_coverage [<project dir>]

Reads the project's .code_my_spec/journeys/*.yml and the newest CTRF report in its .code_my_spec/evidence/ that holds a journey test, and prints SARIF on stdout: one error per stage that has no passed test tagged journey:<slug> and stage:<id> (skipped is not passed; a journey no test names is planned and left alone, unless it is enforced, see ClientUtils.EnforcedJourneys), one per enforced journey whose file is gone, and one when the report was made at another tree than the working tree's. Also one per enforced criterion (ClientUtils.EnforcedJourneys.criteria/1) with no passed test tagged criterion:<scenario id> in any report made at the working tree. Exits 1 when there is any, and fails when no report holds a journey test. Needs yaml_elixir.