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.
This commit is contained in:
Michael Li authored and GitHub committed 2022-12-15 14:57:24 -05:00
1 parent 5353725278
commit 26a85ef61b
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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:
+1 -1
View File
@@ -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" {