You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,8 @@ v1alpha1 is the legacy API; conversion functions exist to v1beta1 (which is the
154
154
## Testing
155
155
156
156
- Unit/integration tests use `envtest` (embedded Kubernetes API server + etcd); no cluster needed
157
-
- E2E tests in `e2e/` use KIND and cover scenarios: fluentd-aggregator, fluentbit-multitenant, syslog-ng-aggregator
157
+
- E2E tests in `e2e/` use KIND: one directory per suite, each its own Go package and test binary, provisioning its own KIND cluster. Run a single suite with `make test-e2e E2E_TEST=<suite-dir>`. Shared helpers live in `e2e/common/` and `e2e/internal/` and are excluded from suite selection
158
+
- E2E knobs (all `make` overrides): `E2E_TEST_TIMEOUT` (per suite binary, default 20m), `E2E_SUITE_PARALLEL` (clusters one suite binary builds at once, default 2 — raising it starves the aggregators on a 4-vCPU runner), `KIND_COMMAND_TIMEOUT` (per kind invocation; derived from `E2E_TEST_TIMEOUT` when unset)
158
159
- Coverage profile config in `.testcoverage.yml`; tool: `go-test-coverage`
159
160
- Test framework: Ginkgo + Gomega for BDD-style tests; testify for unit tests
go test -count=1 -v -timeout ${E2E_TEST_TIMEOUT}$$(go list ./${E2E_TEST}/... | grep -vE '/e2e/(common|internal)(/|$$)')
250
+
go test -count=1 -v -parallel ${E2E_SUITE_PARALLEL} -timeout ${E2E_TEST_TIMEOUT}$$(go list ./${E2E_TEST}/... | grep -vE '/e2e/(common|internal)(/|$$)')
246
251
go tool covdata textfmt -i=${TEST_COV_DIR}/covdatafiles -o ${TEST_COV_DIR}/coverage_e2e.out
247
252
@echo "--- E2E test coverage report"
248
253
go tool covdata percent -i=${TEST_COV_DIR}/covdatafiles
0 commit comments