View Source mix mneme.test (Mneme v0.10.0)
Run tests with support for Mneme's options at the command line
This task is like mix test
, except that it accepts some command line
options specific to Mneme. See "Command line options"
below.
Setup
To ensure mix mneme.test
runs in the test environment, add a
:preferred_cli_env
entry in mix.exs
:
def project do
[
...
preferred_cli_env: [
"mneme.test": :test,
"mneme.watch": :test
],
...
]
end
Command line options
In addition to the options supported by mix test
, which runs under
the hood, the following CLI options are available:
--action [prompt,accept,reject]
--default-pattern [infer,first,last]
--diff [text,semantic]
--diff-style [side_by_side,stacked]
--force-update
--target [mneme,ex_unit]
Option documentation is found here: Mneme – Options