Skip to content

tests: convert most remaining integration tests#2294

Merged
jayconrod merged 17 commits intomasterfrom
v2-6-convert-more-tests
Feb 24, 2026
Merged

tests: convert most remaining integration tests#2294
jayconrod merged 17 commits intomasterfrom
v2-6-convert-more-tests

Conversation

@jayconrod
Copy link
Copy Markdown
Contributor

@jayconrod jayconrod commented Feb 22, 2026

What type of PR is this?

Other

What package or component does this PR mostly affect?

tests

What does this PR do? Why is it needed?

Convert tests that weren't converted earlier by #2293 and remove the corresponding old integration tests.

The remaining integration tests can't be converted because they aren't compatible with the directory test framework. Most of them cover update-repos, which isn't supported there and won't be supported in v2 anyway. A few tests have excessively long names or subtests, and runfiles couldn't be accessed on Windows.

Which issues(s) does this PR fix?

For #2272

Other notes for review

gazelle_binary accepts a "version" attribute, used to select between
either the ./cmd/gazelle or ./v2/cmd/gazelle main package. The default
is determined by Gazelle's module version.

//tests now has separate gazelle_binary targets and test targets for
each version so that we don't regress either v1 or v2.

For #2272
So that the tests can cover both v1 and v2.
@jayconrod jayconrod changed the title V2 6 convert more tests tests: convert remaining integration tests Feb 22, 2026
Base automatically changed from v2-5-convert-tests to master February 23, 2026 17:50
@jayconrod jayconrod changed the title tests: convert remaining integration tests tests: convert most remaining integration tests Feb 24, 2026
@jayconrod jayconrod requested a review from fmeum February 24, 2026 17:30
@jayconrod
Copy link
Copy Markdown
Contributor Author

Sorry this is huge. Should be the last one of these conversions.

@jayconrod jayconrod merged commit a8d8f4c into master Feb 24, 2026
17 checks passed
@jayconrod jayconrod deleted the v2-6-convert-more-tests branch February 24, 2026 19:50
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