From 26a85ef61b13c56bbc6df06e5d95148483f0629c Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 15 Dec 2022 14:57:24 -0500 Subject: [PATCH] chore(e2e): Better output formatting (#2719) Updating the `go test` command to include a table summary of test results at the end. This is the same command used by unit tests. --- .github/workflows/enos-run.yml | 2 ++ enos/modules/test_e2e/main.tf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/enos-run.yml b/.github/workflows/enos-run.yml index a339d5f91..8b1dddcb5 100644 --- a/.github/workflows/enos-run.yml +++ b/.github/workflows/enos-run.yml @@ -40,6 +40,8 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ inputs.go-version }} + - name: Install tools to get tparse + run: make tools - name: Set up Terraform uses: hashicorp/setup-terraform@v2 with: diff --git a/enos/modules/test_e2e/main.tf b/enos/modules/test_e2e/main.tf index 6cd6f55f8..1168c6191 100644 --- a/enos/modules/test_e2e/main.tf +++ b/enos/modules/test_e2e/main.tf @@ -122,7 +122,7 @@ resource "enos_local_exec" "run_e2e_test" { E2E_AWS_HOST_SET_IPS2 = local.aws_host_set_ips2 } - inline = ["PATH=\"${var.local_boundary_dir}:$PATH\" go test -v ${var.test_package} -count=1"] + inline = ["PATH=\"${var.local_boundary_dir}:$PATH\" go test -v ${var.test_package} -count=1 -json | tparse -follow -format plain"] } output "test_results" {