Skip to content

Support DescribeTableSubtree in ginkgo outline#1655

Merged
onsi merged 1 commit intoonsi:masterfrom
sanbricio:feature/support-describe-table-subtree-in-outline
May 8, 2026
Merged

Support DescribeTableSubtree in ginkgo outline#1655
onsi merged 1 commit intoonsi:masterfrom
sanbricio:feature/support-describe-table-subtree-in-outline

Conversation

@sanbricio
Copy link
Copy Markdown
Contributor

Summary

Fixes #1556

ginkgo outline did not recognize DescribeTableSubtree and its variants
(FDescribeTableSubtree, PDescribeTableSubtree, XDescribeTableSubtree),
causing the outline to miss the node entirely and flatten its children.

This PR:

  • Adds all DescribeTableSubtree variants to the node recognition in ginkgoNodeFromCallExpr

  • Adds expandSubtree logic to restructure the tree so each Entry under a
    DescribeTableSubtree gets a copy of the subtree's spec nodes as children,
    mirroring runtime behavior

  • Adds a dedicated test fixture covering: single/multi-spec body, focused,
    pending, and X-pending variants

  • Updates existing fixtures (focused, pending, nodot, alias) to include
    DescribeTableSubtree variants

Test plan

  • go vet ./... passes
  • ginkgo -r -p — all 17 suites pass, 0 failures
  • New dedicated fixture: describe_table_subtree_test.go with CSV + JSON
  • Updated fixtures: focused_test.go, pending_test.go, nodot_test.go, alias_test.go

@onsi onsi merged commit 009dd04 into onsi:master May 8, 2026
5 checks passed
@onsi
Copy link
Copy Markdown
Owner

onsi commented May 8, 2026

hey sorry for the radio silence - this is fantastic! thanks for taking the time to implement it and test it so thoroughly.

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.

Support DescribeTableSubtree in ginkgo outline

2 participants