Skip to content

Commit

Permalink
RHINENG-1715: use gotestsum to collect test summary
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Sep 4, 2023
1 parent 8d61fec commit 91a32dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN go mod download

RUN if [ "$INSTALL_TOOLS" == "yes" ] ; then \
go install github.com/swaggo/swag/cmd/[email protected] && \
go install gotest.tools/[email protected] && \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \
| sh -s -- -b $(go env GOPATH)/bin v1.50.0 ; \
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/go_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ TEST_DIRS=${1:-./...}

# Run go test and colorize output (PASS - green, FAIL - red).
# Set "-p 1" to run test sequentially to avoid parallel changes in testing database.
go test -v -p 1 -coverprofile=coverage.txt -covermode=atomic $TEST_DIRS
gotestsum --format=standard-verbose -- -v -p 1 -coverprofile=coverage.txt -covermode=atomic $TEST_DIRS
2 changes: 1 addition & 1 deletion scripts/go_test_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ go run ./scripts/feed_db.go inventory_hosts
go run main.go migrate $MIGRATION_FILES

# Run database test, destroys and recreates database
go test -v app/database_admin
gotestsum --format=standard-verbose -- -v app/database_admin

# Fill database with testing data
WAIT_FOR_DB=full go run ./scripts/feed_db.go feed
Expand Down

0 comments on commit 91a32dc

Please sign in to comment.