Add --coverpkg flag to go test in the Makefile (#15153)
Related to: #10209 Changes: - Updated the go test in the Makefile to have the `--codepkg` flag. - Added a newline to the `test-go` GH workflow to trigger a run for this PR > Note: I'm creating this as a draft PR to see the results of the "Test Go" workflow
This commit is contained in:
@@ -87,6 +87,7 @@ jobs:
|
||||
done
|
||||
echo "mysql is ready"
|
||||
|
||||
|
||||
- name: Run Go Tests
|
||||
run: |
|
||||
GO_TEST_EXTRA_FLAGS="-v -race=$RACE_ENABLED -timeout=$GO_TEST_TIMEOUT" \
|
||||
|
||||
@@ -138,7 +138,7 @@ dump-test-schema:
|
||||
go run ./tools/dbutils ./server/datastore/mysql/schema.sql
|
||||
|
||||
test-go: dump-test-schema generate-mock
|
||||
go test -tags full,fts5,netgo ${GO_TEST_EXTRA_FLAGS_VAR} -parallel 8 -coverprofile=coverage.txt -covermode=atomic ./cmd/... ./ee/... ./orbit/pkg/... ./orbit/cmd/orbit ./pkg/... ./server/... ./tools/...
|
||||
go test -tags full,fts5,netgo ${GO_TEST_EXTRA_FLAGS_VAR} -parallel 8 -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/fleetdm/fleet/v4/... ./cmd/... ./ee/... ./orbit/pkg/... ./orbit/cmd/orbit ./pkg/... ./server/... ./tools/...
|
||||
|
||||
analyze-go:
|
||||
go test -tags full,fts5,netgo -race -cover ./...
|
||||
|
||||
Reference in New Issue
Block a user