Skip to content

Commit

Permalink
docs: terratest_log_parser info to TerratestDockerusage.md
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Dominno <[email protected]>
  • Loading branch information
iadomi committed Feb 25, 2025
1 parent 28d5f54 commit a8d989b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/user/TerratestDockerUsage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a8d989b

Please sign in to comment.