You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/flakeguard/Makefile
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
.PHONY: test_unit
2
2
test_unit:
3
-
go list ./... | grep -v 'example_test_package'| xargs go test -timeout 5m -json -cover -covermode=count -coverprofile=unit-test-coverage.out 2>&1| tee /tmp/gotest.log | gotestloghelper -ci
3
+
# No longer need grep, example package excluded by build tag
4
+
go test ./... -timeout 5m -json -cover -covermode=count -coverprofile=unit-test-coverage.out 2>&1| tee /tmp/gotest.log | gotestloghelper -ci
4
5
5
6
.PHONY: test
6
7
test:
7
8
go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
8
9
set -euo pipefail
9
-
go list ./... | grep -v 'example_test_package'| xargs go test -json -cover -coverprofile unit-test-coverage.out -v 2>&1| tee /tmp/gotest.log | gotestfmt
10
+
# No longer need grep, example package excluded by build tag
11
+
go test ./... -json -cover -coverprofile unit-test-coverage.out -v 2>&1| tee /tmp/gotest.log | gotestfmt
10
12
11
13
.PHONY: test-package
12
14
test-package:
@@ -16,7 +18,8 @@ test-package:
16
18
17
19
.PHONY: test-race
18
20
test-race:
19
-
go list ./... | grep -v 'example_test_package'| xargs go test -count=1 -race
21
+
# No longer need grep, example package excluded by build tag
0 commit comments