ClientUtils.Check.WalkReach (client_utils v0.6.16)

View Source

Basics

This check is disabled by default.

Learn how to enable it via .credo.exs.

This check has a base priority of high and works with any version of Elixir.

Explanation

A journey walk (test/journeys/**/*_test.exs) or a spec (test/specs/**/*_test.exs) calls only the walk's own surface: JourneySteps.*, JourneyWorld, JourneyCase, PhoenixTest and a few pure modules (String, Enum, Map, Regex, URI, Base, Jason, :crypto).

The project's Boundary stops references into the app; this check stops the rest: Req.Test, :sys, Process, send, apply, and PhoenixTest's unwrap, each a way to change or read the app without a person's door.

And no line of a walk, a spec or a shared step (test/support/journeys/journey_steps) may mention the configuration, apply(, Code., Module.concat, Ecto, unwrap(, a quoted module atom, or rescue/try, which would let a failed check pass. Nor a literal @example.com address: two tests sharing one deadlock each other in Postgres.

A walk that needs something else adds it to JourneySteps (a screen) or JourneyWorld (the outside world).

Check-Specific Parameters

Use the following parameters to configure this check:

:allowed

More modules a walk or spec may call.

This parameter defaults to [].

General Parameters

Like with all checks, general params can be applied.

Parameters can be configured via the .credo.exs config file.

Summary

Functions

The {line, number} pairs of text that reach behind the screens by name.

Functions

lines(text)

The {line, number} pairs of text that reach behind the screens by name.