Skip to content

Commit

Permalink
chore: adjust tests directories
Browse files Browse the repository at this point in the history
  • Loading branch information
higor-duarte-oliveira committed Feb 11, 2025
1 parent c5b9092 commit 651421b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ unit-test:
make gen-mocks
@if ! command -v gotestsum > /dev/null; then echo "Installing gotestsum" && go install -a -v gotest.tools/gotestsum@latest; fi;

gotestsum --junitfile junit.xml -- -p 6 --parallel 6 -v -short -covermode=atomic -coverprofile coverage.out ./... 2>&1 | tee gotest.out
gotestsum --junitfile junit.xml -- -p 6 --parallel 6 -v -short -covermode=atomic -coverprofile coverage.out ./internal/... 2>&1 | tee gotest.out
go tool cover -func coverage.out | tee coverage.txt

# Run all tests including integration tests
Expand All @@ -41,7 +41,7 @@ test:
make gen-mocks
@if ! command -v gotestsum > /dev/null; then echo "Installing gotestsum" && go install -a -v gotest.tools/gotestsum@latest; fi;

gotestsum --junitfile junit.xml -- -v -p 1 -parallel 1 -covermode=atomic -coverprofile coverage.out ./... 2>&1 | tee gotest.out
gotestsum --junitfile junit.xml -- -v -p 1 -parallel 1 -covermode=atomic -coverprofile coverage.out ./internal/... 2>&1 | tee gotest.out
go tool cover -func coverage.out | tee coverage.txt

# Run only integration tests
Expand All @@ -50,7 +50,7 @@ integration-test:
make gen-mocks
@if ! command -v gotestsum > /dev/null; then echo "Installing gotestsum" && go install -a -v gotest.tools/gotestsum@latest; fi;

gotestsum --junitfile junit.xml -- -v -p 1 -parallel 1 -run Integration -covermode=atomic -coverprofile coverage.out ./... 2>&1 | tee gotest.out
gotestsum --junitfile junit.xml -- -v -p 1 -parallel 1 -run Integration -covermode=atomic -coverprofile coverage.out ./internal/... 2>&1 | tee gotest.out
go tool cover -func coverage.out | tee coverage.txt

gen-proto:
Expand Down

0 comments on commit 651421b

Please sign in to comment.