Skip to content

Commit a78c117

Browse files
committed
fix(test): e2e suite silently skips every test
1 parent 426a133 commit a78c117

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

go/core/test/e2e/interaction_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,14 @@ func interactionTarget(t *testing.T) string {
394394
target = os.Getenv("KAGENT_GRPC_URL")
395395
}
396396
if target == "" {
397-
t.Skip("KAGENT_E2E_GRPC_TARGET is not set")
397+
t.Fatalf("KAGENT_E2E_GRPC_TARGET or KAGENT_GRPC_URL must be set to run e2e tests.\n" +
398+
"To run e2e tests locally:\n" +
399+
" 1. Create a Kind cluster: make create-kind-cluster\n" +
400+
" 2. Install Substrate and Kagent (see CI workflow in .github/workflows/ci.yaml)\n" +
401+
" 3. Set the gRPC target:\n" +
402+
" export KAGENT_E2E_GRPC_TARGET=<controller-address>:8084\n" +
403+
" 4. Run tests: go test -v ./core/test/e2e/...\n" +
404+
"See go/core/test/e2e/README.md for full instructions.")
398405
}
399406
return target
400407
}

go/core/test/e2e/lifecycle_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ func TestAgentInstanceLifecycle(t *testing.T) {
2525
target = os.Getenv("KAGENT_GRPC_URL")
2626
}
2727
if target == "" {
28-
t.Skip("KAGENT_E2E_GRPC_TARGET is not set")
28+
t.Fatalf("KAGENT_E2E_GRPC_TARGET or KAGENT_GRPC_URL must be set to run e2e tests.\n" +
29+
"To run e2e tests locally:\n" +
30+
" 1. Create a Kind cluster: make create-kind-cluster\n" +
31+
" 2. Install Substrate and Kagent (see CI workflow in .github/workflows/ci.yaml)\n" +
32+
" 3. Set the gRPC target:\n" +
33+
" export KAGENT_E2E_GRPC_TARGET=<controller-address>:8084\n" +
34+
" 4. Run tests: go test -v ./core/test/e2e/...\n" +
35+
"See go/core/test/e2e/README.md for full instructions.")
2936
}
3037

3138
conn, err := grpc.NewClient(target, grpc.WithTransportCredentials(insecure.NewCredentials()))

0 commit comments

Comments
 (0)