View Source MixTestInteractive.Settings (mix test.interactive v4.1.1)
Interactive mode settings.
Keeps track of the current settings of MixTestInteractive.InteractiveMode
, making changes
in response to user commands.
Summary
Functions
Update settings to run all tests, removing any flags or filter patterns.
Update settings to clear any excluded tags.
Update settings to clear any included tags.
Update settings to run with unlimited failures, clearing any specified maximum number of failures.
Update settings to clear any "only" tags.
Update settings to run tests only once, clearing any repeat-until-failure count.
Update settings to run tests with a random seed, clearing any specified seed.
Assemble command-line arguments to pass to mix test
.
Update settings to only run failing tests.
Provide a list of file-name filter patterns.
Update settings to only run "stale" tests.
Return a text summary of the current interactive mode settings.
Toggle test tracing on or off.
Toggle file-watching mode on or off.
Exclude tests with the specified tags.
Include tests with the specified tags.
Stop running tests after a maximum number of failures.
Run only the tests with the specified tags.
Update settings to run tests <count> times until failure.
Update settings to run tests with a specific seed.
Types
@type t() :: %MixTestInteractive.Settings{ excludes: [String.t()], failed?: boolean(), includes: [String.t()], initial_cli_args: [String.t()], list_all_files: (-> [String.t()]), max_failures: String.t() | nil, only: [String.t()], patterns: [String.t()], repeat_count: String.t() | nil, seed: String.t() | nil, stale?: boolean(), tracing?: boolean(), watching?: boolean() }
Functions
Update settings to run all tests, removing any flags or filter patterns.
Update settings to clear any excluded tags.
Update settings to clear any included tags.
Update settings to run with unlimited failures, clearing any specified maximum number of failures.
Update settings to clear any "only" tags.
Update settings to run tests only once, clearing any repeat-until-failure count.
Update settings to run tests with a random seed, clearing any specified seed.
Assemble command-line arguments to pass to mix test
.
Includes arguments originally passed to mix test.interactive
when it was started
as well as arguments based on the current interactive mode settings.
Update settings to only run failing tests.
Corresponds to mix test --failed
.
Provide a list of file-name filter patterns.
Only test filenames matching one or more patterns will be run.
Update settings to only run "stale" tests.
Corresponds to mix test --stale
.
Return a text summary of the current interactive mode settings.
Toggle test tracing on or off.
Toggle file-watching mode on or off.
Exclude tests with the specified tags.
Corresponds to mix test --exclude <tag1> --exclude <tag2> ...
.
Include tests with the specified tags.
Corresponds to mix test --include <tag1> --include <tag2> ...
.
Stop running tests after a maximum number of failures.
Corresponds to mix test --max-failures <max>
.
Run only the tests with the specified tags.
Corresponds to mix test --only <tag1> --only <tag2> ...
.
Update settings to run tests <count> times until failure.
Corresponds to mix test --repeat-until-failure <count>
.
Update settings to run tests with a specific seed.
Corresponds to mix test --seed <seed>
.