diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a392860..19e6398d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -131,14 +131,20 @@ jobs: name: Install go-junit-report command: go install github.com/jstemmer/go-junit-report@latest + - run: + name: Install gotestsum + command: go install gotest.tools/gotestsum@latest - run: mkdir -p $TEST_RESULTS # this will run all tests and exclude test files from code coverage report - - run: | - go test -v ./... \ - -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/... \ - -coverprofile=cover.out 2>&1 | go-junit-report > $TEST_RESULTS/results.xml + - run: + name: Running tests + command: gotestsum --junitfile report.xml --format testname + #- run: | + # go test -v ./... \ + # -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/... \ + # -coverprofile=cover.out 2>&1 | go-junit-report > $TEST_RESULTS/results.xml # run mariaDB and cockroachdb tests. No need to collect coverage, because coverage is already included with mysql and postgres tests - run: MY_SQL_SOURCE=MariaDB go test -v ./tests/mysql/