From a8d989b3f19a8da810f914b05ae4cba3b8c02248 Mon Sep 17 00:00:00 2001 From: Ian Dominno Date: Tue, 25 Feb 2025 18:29:12 -0500 Subject: [PATCH] docs: terratest_log_parser info to TerratestDockerusage.md Signed-off-by: Ian Dominno --- docs/user/TerratestDockerUsage.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/user/TerratestDockerUsage.md b/docs/user/TerratestDockerUsage.md index 3e4175b0..4bc43191 100644 --- a/docs/user/TerratestDockerUsage.md +++ b/docs/user/TerratestDockerUsage.md @@ -34,11 +34,11 @@ Add volume mounts to the `docker run` command for all files and directories that The `terratest_docker_entrypoint.sh` script supports several command line arguments to customize the test execution. Here are the available options: -* `-p, --package=PACKAGE`: The package to test. Default is '.' -* `-n, --testname=TEST`: The name of the test to run. Default is 'TestDefaults'. -* `-t, --build-tags=TAGS`: The tags to use when running the tests. Default is 'integration_plan_unit_tests'. -* `-v, --verbose`: Run the tests in verbose mode. -* `-h, --help`: Display the help message. +* `-p, --package=PACKAGE`: The package to test. Default is '.' +* `-n, --testname=TEST`: The name of the test to run. Default is 'TestDefaults'. +* `-t, --build-tags=TAGS`: The tags to use when running the tests. Default is 'integration_plan_unit_tests'. +* `-v, --verbose`: Run the tests in verbose mode. +* `-h, --help`: Display the help message. ## Running Terratest Commands @@ -91,9 +91,9 @@ docker run --rm --group-add root \   viya4-iac-azure-terratest -v ``` -### Testing changes locally +### Testing changes locally and accessing test run logs -After making additions or changes to the tests, you can mount the test directory to /viya4-iac-azure/test. This will overwrite the docker image's tests with your latest changes. To do that, run the following docker command: +After making additions or changes to the tests, you can mount the test directory to /viya4-iac-azure/test. This will overwrite the docker image's tests with your latest changes. It will also allow you to access and view the test run xml and logs located in the /test/test_output directory generated by the terrratest_log_parser. To do that, run the following docker command: ```bash # Run from the /viya4-iac-azure root