Implement a test run
run_test_impl(
path_executable,
path_candidate,
std_err,
std_out,
cmd_args,
artifacts,
file_transformer,
env,
expect_success
)
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()
.
Whether or not an exit code 0 is expected. This can
be derived from std_err
, but sometimes, non-empty stderr does not mean
error, but just a message.