Skip to content

test(e2e): print a running [k/N] specs-done progress counter - #311

Open
amuraru wants to merge 1 commit into
adobe:masterfrom
amuraru:test/e2e-progress-counter
Open

test(e2e): print a running [k/N] specs-done progress counter#311
amuraru wants to merge 1 commit into
adobe:masterfrom
amuraru:test/e2e-progress-counter

Conversation

@amuraru

@amuraru amuraru commented Aug 12, 2026

Copy link
Copy Markdown

The e2e suite runs --ginkgo.v (make test-e2e), but Ginkgo only prints
the total spec count once up front ("Will run N of N specs") and a final
summary at the very end. During the ~45m CI run there's no way to tell how
far along a run is from the log — e.g. https://github.com/adobe/koperator/actions/runs/31584238727/job/94074210240?pr=304.

Adds a ReportBeforeSuite hook to capture the total spec count and a
ReportAfterEach hook that prints:

--- [k/N specs done] <spec full text>: <passed|failed|...> (took <duration>)

after every spec, so both progress and per-spec timing are visible straight
off the CI log as the run streams. The suite runs in series (no -p), so
plain package-level counters are safe without extra synchronization.

Verified with --ginkgo.dry-run (99/99 specs, correct counter) plus
go build/go vet/golangci-lint on tests/e2e.

The e2e suite runs --ginkgo.v but Ginkgo only prints the spec count
up front ("Will run N of N specs") and a final summary, so CI logs
give no indication of progress while the ~45m run is in flight.

Add a ReportBeforeSuite hook to capture the total spec count and a
ReportAfterEach hook that prints "[k/N specs done] <spec>: <state>
(took <duration>)" after every spec, so progress and per-spec timing
can be read straight off the CI log.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant