You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2022/10/05 07:41:20 UTC
[camel-k] branch main updated: chore: add test-fmt make target
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 0a12fb4a1 chore: add test-fmt make target
0a12fb4a1 is described below
commit 0a12fb4a1c30708c103f377174954e1fa03d6afe
Author: Tadayoshi Sato <sa...@gmail.com>
AuthorDate: Tue Oct 4 14:16:58 2022 +0900
chore: add test-fmt make target
---
script/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/script/Makefile b/script/Makefile
index d75864f73..91fade9ef 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -230,6 +230,13 @@ test: do-build
cd pkg/client/camel && go test ./...
cd pkg/kamelet/repository && go test ./...
+test-fmt: do-build
+ @echo "####### Running unit test..."
+ go test -v ./... -json 2>&1 | gotestfmt
+ cd pkg/apis/camel && go test -v ./... -json 2>&1 | gotestfmt
+ cd pkg/client/camel && go test -v ./... -json 2>&1 | gotestfmt
+ cd pkg/kamelet/repository && go test -v ./... -json 2>&1 | gotestfmt
+
#
# Integration tests are located either as global or namespace
# global: tests can be executed using a pre-installed global operator