Skip to content

Commit fc4b3c3

Browse files
committed
Add line breaks to go test command
This will improve the readability of a long and complex command without having any effect on its function.
1 parent bffd0b4 commit fc4b3c3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Taskfile.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ tasks:
4444
desc: Run unit tests
4545
dir: "{{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}}"
4646
cmds:
47-
- go test -v -short -run '{{default ".*" .GO_TEST_REGEX}}' {{default "-timeout 10m -coverpkg=./... -covermode=atomic" .GO_TEST_FLAGS}} -coverprofile=coverage_unit.txt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
47+
- |
48+
go test \
49+
-v \
50+
-short \
51+
-run '{{default ".*" .GO_TEST_REGEX}}' \
52+
{{default "-timeout 10m -coverpkg=./... -covermode=atomic" .GO_TEST_FLAGS}} \
53+
-coverprofile=coverage_unit.txt \
54+
{{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
4855
4956
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-integration-task/Taskfile.yml
5057
go:test-integration:

0 commit comments

Comments
 (0)