Skip to content

Commit

Permalink
Makefile: Add unit-tests target to makefile
Browse files Browse the repository at this point in the history
Add target unit-tests to the Makefile to run all unit tests

Signed-off-by: Kfir Toledo <[email protected]>
  • Loading branch information
kfirtoledo committed Sep 25, 2023
1 parent 2743e95 commit 61e6cc7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ clean-tests:
#------------------------------------------------------
# Run Targets
#------------------------------------------------------
unit-tests:
@echo "Running unit tests..."
$(GO) install github.com/mfridman/tparse@latest
$(GO) test -v -count=1 ./pkg/... -json -cover | tparse --all

tests-e2e: clean-tests docker-build
$(GO) test -p 1 -timeout 30m -v -tags e2e ./tests/e2e/connectivity/...

Expand Down

0 comments on commit 61e6cc7

Please sign in to comment.