diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index f0a523e1a..584da89e1 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -74,7 +74,7 @@ run go tests: extends: .go-cache script: - echo "Running featurebase unit tests..." - - ./cover-everything.sh + - go test -coverprofile=coverage.out -covermode=atomic -coverpkg=./... ./... artifacts: paths: - coverage.out @@ -85,7 +85,7 @@ run go tests future: extends: .go-cache script: - echo "Running featurebase unit tests..." - - ./cover-everything.sh + - go test -coverprofile=coverage.out -covermode=atomic -coverpkg=./... ./... artifacts: paths: - coverage.out diff --git a/cover-everything.sh b/cover-everything.sh deleted file mode 100755 index 808fc9997..000000000 --- a/cover-everything.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -# actually get test coverage for every single package and subpackage -# very slow but oh well what are you gonna do, not test things? -# note it skips the roaring migrate -echo "mode: atomic" > coverage.out -for pkg in $(go list all | grep featurebase ); do - go test -coverprofile=pkgcoverage.out -covermode=atomic $pkg; - tail -n +2 pkgcoverage.out >> coverage.out; done