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

Detect more test files #1297

Merged
merged 3 commits into from
Oct 4, 2023
Merged

Detect more test files #1297

merged 3 commits into from
Oct 4, 2023

Conversation

philipp-spiess
Copy link
Contributor

I asked GPT4 to give me some common examples and made the test pass. WDYT @abeatrix?

Test plan

Test green

@philipp-spiess philipp-spiess self-assigned this Oct 3, 2023
Comment on lines 227 to 233
return (
fileNameWithoutExt.startsWith('test') ||
fileNameWithoutExt.endsWith('test') ||
fileNameWithoutExt.endsWith('tests') ||
fileNameWithoutExt.endsWith('spec')
)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I will change this to a regex to avoid things like Protest :D

Comment on lines +45 to +46
['/path/to/testFile.java', false],
['/path/to/testFile.js', false],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two I broke in this PR since it doesn't seem to be from a popular test framework, but maybe I am overlooking something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They were not! I wasn't doing any lang-specified lookup so anything that starts with test would have passed lol thanks for updating this

Copy link
Member

@valerybugakov valerybugakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use AI tools to build AI tools 🧠

@philipp-spiess philipp-spiess merged commit d238bd1 into main Oct 4, 2023
11 checks passed
@philipp-spiess philipp-spiess deleted the ps/detect-more-test-files branch October 4, 2023 10:38
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.

None yet

3 participants