Merge code coverages.
This commit is contained in:
parent
7f12e4a2b7
commit
36e3319d90
1 changed files with 21 additions and 1 deletions
|
|
@ -142,7 +142,27 @@ jobs:
|
|||
|
||||
- run:
|
||||
name: Running tests
|
||||
command: gotestsum --junitfile $TEST_RESULTS/report.xml --format testname -- -tags postgres -coverprofile=cover.out -covermode=atomic -coverpkg=github.com/go-jet/jet/v2/postgres/...,github.com/go-jet/jet/v2/mysql/...,github.com/go-jet/jet/v2/sqlite/...,github.com/go-jet/jet/v2/qrm/...,github.com/go-jet/jet/v2/generator/...,github.com/go-jet/jet/v2/internal/...,github.com/go-jet/jet/v2/stmtcache/... ./...
|
||||
command: |
|
||||
COVERPKG="github.com/go-jet/jet/v2/postgres/...,github.com/go-jet/jet/v2/mysql/...,github.com/go-jet/jet/v2/sqlite/...,github.com/go-jet/jet/v2/qrm/...,github.com/go-jet/jet/v2/generator/...,github.com/go-jet/jet/v2/internal/...,github.com/go-jet/jet/v2/stmtcache/..."
|
||||
|
||||
gotestsum --junitfile $TEST_RESULTS/root-report.xml --format testname -- \
|
||||
-coverprofile=root-cover.out \
|
||||
-covermode=atomic \
|
||||
-coverpkg="$COVERPKG" \
|
||||
./...
|
||||
|
||||
cd tests
|
||||
gotestsum --junitfile $TEST_RESULTS/integration-report.xml --format testname -- \
|
||||
-tags postgres \
|
||||
-coverprofile=../integration-cover.out \
|
||||
-covermode=atomic \
|
||||
-coverpkg="$COVERPKG" \
|
||||
./...
|
||||
cd -
|
||||
|
||||
head -n 1 root-cover.out > cover.out
|
||||
tail -n +2 root-cover.out >> cover.out
|
||||
tail -n +2 integration-cover.out >> cover.out
|
||||
|
||||
- run:
|
||||
name: Running tests with statement caching enabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue