Implement a test run
run_test_impl(path_executable, path_candidate, error_msg, cmd_args, copy)
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.
More arguments passed to the file. Pre-commit handles it as described here.
Path with files to copy to the temp directory where the test is run. If the target destination relative to the temp dir where the hook is tested is not identical to the path from where a file should be copied, you can pass a named vector. The name is the target directory relative to the temp directory where the hook is executed (the temp directory will be the working directory at that time) and the value is the path that points to the place where the artifact is currently stored.