Skip to content

refactor: migrate test suite from Ginkgo v1 to v2#371

Merged
tnikolova82 merged 2 commits into
masterfrom
ginkgo-v2
Mar 6, 2026
Merged

refactor: migrate test suite from Ginkgo v1 to v2#371
tnikolova82 merged 2 commits into
masterfrom
ginkgo-v2

Conversation

@ramonskie
Copy link
Copy Markdown
Contributor

Summary

Migrates the r-buildpack test suite from Ginkgo v1 to v2.

Commits

1. migrate to ginkgo v2

Upgrade github.com/onsi/ginkgo v1.16.5 → v2 and update all import
paths from github.com/onsi/ginkgo to github.com/onsi/ginkgo/v2.
Runs go mod tidy and go mod vendor to bring in updated dependencies.

Files changed: go.mod, go.sum, vendor/, all *.go source files with ginkgo imports.

2. refactor: migrate Ginkgo v1 AfterEach cleanup to v2 DeferCleanup

Replace all AfterEach cleanup blocks with DeferCleanup calls co-located
in BeforeEach, following Ginkgo v2 idioms.

Files changed:

  • src/r/hooks/env_hook_test.go
  • src/r/supply/supply_test.go

Verification

  • go build ./...
  • Zero AfterEach remaining in source (excluding vendor) ✅

Upgrade github.com/onsi/ginkgo v1.16.5 -> v2 and update all import
paths from github.com/onsi/ginkgo to github.com/onsi/ginkgo/v2.
Replace all AfterEach cleanup blocks with DeferCleanup calls co-located
in BeforeEach/JustBeforeEach, following Ginkgo v2 idioms. Bare AfterEach
at Describe-level are replaced with direct DeferCleanup calls in the
Describe body.
Copy link
Copy Markdown
Contributor

@tnikolova82 tnikolova82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tnikolova82 tnikolova82 merged commit 466285e into master Mar 6, 2026
6 checks passed
@tnikolova82 tnikolova82 deleted the ginkgo-v2 branch March 6, 2026 12:26
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.

2 participants