Skip to content

Commit a27cd0c

Browse files
committed
use task to run tests
1 parent dc72008 commit a27cd0c

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)