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

Allow tests to be in 'test' package #1027

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

anderseknert
Copy link
Member

@anderseknert anderseknert commented Aug 29, 2024

This is a Styra DAS convention, and while I'd say *_test is preferred, I think it's OK to allow this single exception.

Also update this rule to report end location.

@anderseknert anderseknert force-pushed the allow-test-directory branch 2 times, most recently from d8d460d to 112b2ca Compare August 29, 2024 12:16
And allow a test file to be named `test.rego`

This is a Styra DAS convention, and while I'd say `_test` is preferred,
I think it's OK to allow this single exception.

Also updated the test-outside-test-package rule to report end location.

Signed-off-by: Anders Eknert <[email protected]>
@anderseknert anderseknert merged commit ebdc067 into main Aug 29, 2024
3 checks passed
@anderseknert anderseknert deleted the allow-test-directory branch August 29, 2024 14:01
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