Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 906357d

Browse files
committedJun 5, 2019
use task to run tests
1 parent c51f9ba commit 906357d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
 

‎Taskfile.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: '2'
2+
3+
tasks:
4+
build:
5+
desc: Build the project
6+
cmds:
7+
- go build -v -i
8+
9+
test:
10+
desc: Run the full testsuite
11+
cmds:
12+
- task: test-unit
13+
- task: test-integration
14+
15+
test-unit:
16+
desc: Run unit tests only
17+
cmds:
18+
- go test -short {{ default "-v" .GOFLAGS }} {{ default "./..." .TARGETS }}
19+
20+
test-integration:
21+
desc: Run integration tests only
22+
cmds:
23+
- go test -run Integration {{ default "-v" .GOFLAGS }} {{ default "./..." .TARGETS }}

0 commit comments

Comments
 (0)
Please sign in to comment.