From 5cfcabad4b2e3dcaa44ce6939d10e67ed692e5be Mon Sep 17 00:00:00 2001 From: mitch Date: Sat, 22 Oct 2022 11:51:13 -0400 Subject: [PATCH] Added coverage report --- .circleci/config.yml | 6 ++++++ README.md | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0533a16..e59f428 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,9 +29,15 @@ jobs: name: Run tests command: | mkdir -p /tmp/test-reports + mkdir -p /tmp/artifacts + go test -coverprofile=c.out + go tool cover -html=c.out -o coverage.html + mv coverage.html /tmp/artifacts gotestsum --junitfile /tmp/test-reports/unit-tests.xml - store_test_results: path: /tmp/test-reports + - store_artifacts: + path: /tmp/artifacts # Invoke jobs via workflows # See: https://circleci.com/docs/2.0/configuration-reference/#workflows diff --git a/README.md b/README.md index 31e2664..62fe7fd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -# Template: [![](https://circleci.com/gh/mitch-thompson/versionedTerraform.svg?style=svg)]() # Versioned Terraform