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

[FR]: Support adding testonly to a glob of folders/files with gazelle plugin #669

Open
Aghassi opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement New feature or request untriaged Requires traige

Comments

@Aghassi
Copy link

Aghassi commented Apr 18, 2024

What is the current behavior?

You can't isolate out a folder and say "for this folder, please give me source targets and add testonly to make sure this folder doesn't get used in production". This means we can do build file generation on a folder like mocks but we have to manually add testonly.

Describe the feature

We should be able to pass a directive like #gazelle:treat_as_testonly **/mocks/** that will generate targets in any mocks folder found, but add testonly to the ts_project target. This prevents anything from mocks being used downstream and ending up in production.

@Aghassi Aghassi added the enhancement New feature or request label Apr 18, 2024
@github-actions github-actions bot added the untriaged Requires traige label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request untriaged Requires traige
Projects
None yet
Development

No branches or pull requests

1 participant