Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
bb7a5db3
Unverified
Commit
bb7a5db3
authored
Jun 13, 2019
by
Massimiliano Pippi
Committed by
GitHub
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split test tasks (#249)
* split legacy tests * explicitly run legacy test on master
parent
65a4fded
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
.travis.yml
.travis.yml
+1
-0
Taskfile.yml
Taskfile.yml
+10
-3
No files found.
.travis.yml
View file @
bb7a5db3
...
...
@@ -23,6 +23,7 @@ script:
# Build and test
-
./bin/task build
-
./bin/task test
-
./bin/task test-legacy
after_success
:
-
bash <(curl -s https://codecov.io/bash) -cF unittests,integration
...
...
Taskfile.yml
View file @
bb7a5db3
...
...
@@ -7,7 +7,7 @@ tasks:
-
go build -v -i {{.LDFLAGS}}
test
:
desc
:
Run the full testsuite
desc
:
Run the full testsuite
, `legacy` will be skipped
cmds
:
-
task
:
test-unit
-
task
:
test-integration
...
...
@@ -15,14 +15,21 @@ tasks:
test-unit
:
desc
:
Run unit tests only
cmds
:
-
go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default
"./..."
.TARGETS }}
-
go test -short {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default
.DEFAULT_TARGETS
.TARGETS }}
test-integration
:
desc
:
Run integration tests only
cmds
:
-
go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default "./..." .TARGETS }} {{.TEST_LDFLAGS}}
-
go test -run Integration {{ default "-v" .GOFLAGS }} -coverprofile=coverage_integ.txt {{ default .DEFAULT_TARGETS .TARGETS }} {{.TEST_LDFLAGS}}
test-legacy
:
desc
:
Run tests for the `legacy` package
cmds
:
-
go test {{ default "-v" .GOFLAGS }} ./legacy/...
vars
:
DEFAULT_TARGETS
:
"
./arduino/...
./auth/...
./cli/...
./commands/...
./executils/...
./version/..."
# build vars
VERSIONSTRING
:
"
0.3.6-alpha.preview"
COMMIT
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment