Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHINENG-1715: use gotestsum to collect test summary #1305

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading