Skip to content

Commit 632f0e5

Browse files
committed
separate legacy tests, dont run on CI
1 parent 6fe0994 commit 632f0e5

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Diff for: Taskfile.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,29 @@ tasks:
77
- go build -v -i {{.LDFLAGS}}
88

99
test:
10-
desc: Run the full testsuite
10+
desc: Run the full testsuite, `legacy` will be skipped
1111
cmds:
1212
- task: test-unit
1313
- task: test-integration
1414

1515
test-unit:
1616
desc: Run unit tests only
1717
cmds:
18-
- go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default "./..." .TARGETS }}
18+
- go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_TARGETS .TARGETS }}
1919

2020
test-integration:
2121
desc: Run integration tests only
2222
cmds:
23-
- go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default "./..." .TARGETS }} {{.TEST_LDFLAGS}}
23+
- go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}
24+
25+
test-legacy:
26+
desc: Run tests for the `legacy` package
27+
cmds:
28+
- go test {{ default "-v" .GOFLAGS }} ./legacy/...
2429

2530
vars:
31+
DEFAULT_TARGETS: "./arduino/... ./auth/... ./cli/... ./commands/... ./executils/... ./version/..."
32+
2633
# build vars
2734
VERSIONSTRING: "0.3.6-alpha.preview"
2835
COMMIT:

0 commit comments

Comments
 (0)