Skip to content

Commit b338cfb

Browse files
committed
Add linebreaks to go test command
Long commands, especially in this case where taskfile templating is involved, can be difficult to read and interpret. Adding strategic line breaks makes the structure of the command easy to follow.
1 parent 6015029 commit b338cfb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Taskfile.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ tasks:
6969
go:test:
7070
desc: Run unit tests
7171
cmds:
72-
- go test -short -run '{{default ".*" .TEST_REGEX}}' {{default "-v" .GOFLAGS}} -coverprofile=coverage_unit.txt {{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
72+
- |
73+
go test \
74+
-short \
75+
-run '{{default ".*" .TEST_REGEX}}' \
76+
{{default "-v" .GOFLAGS}} \
77+
-coverprofile=coverage_unit.txt \
78+
{{default .DEFAULT_GO_PACKAGES .GO_PACKAGES}}
7379
7480
go:test-integration:
7581
desc: Run integration tests

0 commit comments

Comments
 (0)