Skip to content
New issue

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

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

Already on GitHub? # 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 <anders@styra.com>
@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
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
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 <anders@styra.com>
charlieegan3 pushed a commit to charlieegan3/regal that referenced this pull request Jan 6, 2025
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 <anders@styra.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants