diff --git a/.gitignore b/.gitignore index f095d09ce..6efe5a8cb 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ website/vendor # Test exclusions !command/testdata/**/*.tfstate !command/testdata/**/.terraform/ + +# Coverage +coverage.txt diff --git a/Makefile b/Makefile index 143bc1ff7..0c3f2e553 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ plugin-dev: generate # we run this one package at a time here because running the entire suite in # one command creates memory usage issues when running in Travis-CI. test: fmtcheck generate - go list -mod=vendor $(TEST) | xargs -t -n4 go test $(TESTARGS) -mod=vendor -timeout=2m -parallel=4 + go list -mod=vendor $(TEST) | xargs -t -n4 go test $(TESTARGS) -mod=vendor -timeout=2m -parallel=4 -coverprofile=coverage.txt -covermode=atomic # testacc runs acceptance tests testacc: fmtcheck generate