the arg is whatever comes after the name, as a string, so the arg for mix test is just "" an empty string. the arity of the function doesn’t define if you have args or not, it’s a behaviour the expected arity is always 1 no matter what.
what you can do is just implement it as
def run(_arg) do
...
end
you can find more details here:






















