From 0b7446eb5330165ffb444a294c2a5e982734ecee Mon Sep 17 00:00:00 2001 From: Mikhail Shilkov Date: Tue, 24 Sep 2024 16:55:12 +0200 Subject: [PATCH] Extend code coverage to be more meaningful --- Makefile | 2 +- codecov.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7e574bf..d8c4f37 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: build build_examples install_examples lint lint-copyright lint-golang -GO_TEST_FLAGS=-race -coverprofile="coverage.txt" +GO_TEST_FLAGS=-race -coverprofile="coverage.txt" -coverpkg=github.com/pulumi/pulumi-go-provider/... GO_TEST=go test ${GO_TEST_FLAGS} build: diff --git a/codecov.yml b/codecov.yml index bfdc987..8f869a3 100644 --- a/codecov.yml +++ b/codecov.yml @@ -6,3 +6,6 @@ coverage: patch: default: informational: true +ignore: + # Examples implementation code should not count against coverage. + - "examples/"