8000 Add the ginkgo list-pending command by Boulea7 · Pull Request #1698 · onsi/ginkgo · GitHub
[go: up one dir, main page]

Skip to content

Add the ginkgo list-pending command - #1698

Merged
onsi merged 1 commit into
onsi:masterfrom
Boulea7:fix/list-pending
Dec 3, 2026
Merged

onsi merged 1 commit into
onsi:masterfrom
Boulea7:fix/list-pending

Conversation

@Boulea7
@Boulea7 Boulea7 commented Dec 3, 2026
Copy link
Copy Markdown
Contributor

ginkgo list-pending prints the source location and description of each statically declared pending spec without compiling test packages. It uses the suite discovery options from the other CLI commands and recognizes Pending decorators, P and X forms, and specs in pending containers and table subtrees.

The help and filtering guide explain the limits of static analysis.

Verification

  • Focused CLI integration, outline, and documentation tests
  • go vet ./...
  • Exercised all 18 suites. The automatic process-count test failed with the harness CPU cap on both baseline and candidate, and passed with the cap removed.
  • Compared the listing against all nine pending specs in a local ginkgo --dry-run --json-report

Closes #1537

onsi added a commit that referenced this pull request Dec 3, 2026
-trimpath shares no build cache with the other specs, so the fixture
compiles the standard library, Ginkgo and Gomega from scratch: about 36
CPU-seconds. On a 2-core runner that took the spec past Eventually's
30s default (CI on #1698, Go stable).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FockBuVhFMJNJ2AzJrBbBn
@onsi
onsi commented Dec 3, 2026
Copy link
Copy Markdown
Owner

Thanks for this! Happy to see these long-standing issues get closed out - I appreciate the help and the investment, and the extra fixes along the way are great. I'm merging it as is and will follow up on master with a few changes:

  • ginkgo outline exits 1 on a test file that imports only a Ginkgo subpackage (e.g. extensions/globals/globals_test.go), where it used to print an empty outline. Editor integrations run outline on test files, so I'll restore the old behaviour.
  • Only _test.go files in suite directories are scanned. Specs declared in plain .go files, or in packages that aren't suites (Kuma's e2e helpers, for instance), are missed. list-pending will read every Go file that imports Ginkgo.
  • Build constraints are applied but there's no --tags, so a suite behind //go:build e2e is skipped silently. I'll add the flag.
  • The outline fixes have no outline unit tests yet; I'll add _testdata cases for them.

Thanks again!

@onsi
onsi merged commit 63dab5e into onsi:master Dec 3, 2026
5 of 6 checks passed
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.

Feature Request: Add a subcommand to list all skipped/pending tests

2 participants

0