Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support MODULE.bazel test cases for gazelle_generation_test. #1948

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

gonzojive
Copy link
Contributor

What type of PR is this?

Feature (testing enhancement for extension developers)

What package or component does this PR mostly affect?

gazelle_generation_test

What does this PR do? Why is it needed?

gazelle_generation_test uses the existence of a WORKSPACE file to indicate a directory is a test case. This PR extends gazelle_generation_test to also look for directories with a MODULE.bazel file.

A test case is modified to check the logic.

Which issues(s) does this PR fix?

Fixes # 1947

Other notes for review

Added as part of kotlin gazelle development.

gazelle_generation_test uses the existence of a WORKSPACE file to indicate a
directory is a test case. This PR extends gazelle_generation_test to also look
for directories with a MODULE.bazel file.

A test case is modified to check the logic.
@gonzojive gonzojive force-pushed the bzlmod-generation-tests branch from 02ffbf2 to 1d2154f Compare October 6, 2024 19:12
internal/generationtest/generation_test.go Outdated Show resolved Hide resolved
@fmeum fmeum merged commit 4e16eed into bazel-contrib:master Oct 7, 2024
15 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.

2 participants