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

Fix TestSuiteResolver parse path containing "@" symbol #266

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

alexlyttle
Copy link
Contributor

@alexlyttle alexlyttle commented Oct 22, 2024

Fixes #263.

The TestSuiteResolver.parse method fails when an "@" symbol is in the path. This is because it splits the script's path on "@" to retrieve test ID without accounting for other "@" symbols elsewhere in the path. I have fixed this by using java.nio.file.Paths to split the file name from the base path and check only the file name for an "@" symbol.

Let me know if the addition of a unit test case for this would be useful (e.g. to test the case where scripts contains a path with an "@" symbol).

@lukfor
Copy link
Collaborator

lukfor commented Dec 3, 2024

Thanks 🙌

@lukfor lukfor merged commit f63904b into askimed:main Dec 3, 2024
6 checks passed
@alexlyttle alexlyttle deleted the fixes/at-in-path branch December 3, 2024 11:08
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.

Error when tests located in a path containing an "@" symbol
2 participants