Implement a test run
run_test_impl(
path_executable,
path_candidate,
error_msg,
msg,
cmd_args,
artifacts,
file_transformer,
env
)
The path to the executable bash script.
The path to a file that should be modified by the executable.
An expected error message. If no error is expected, this
can be NULL
. In that case, the comparator
is applied.
The expected stdout message. If NULL
, this check is omitted.
More arguments passed to the file. Pre-commit handles it as described here.
Path with artifact files to copy to the temp directory root where the test is run. If you don't target the root, this can be a named vector of length one where the name is the target location relative to the temporary location and the value is the source of the file.
The environment variables to set with base::system2()
.