Skip to content

Add line terminator to XCTest filter regex #1086

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

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

plemarquand
Copy link
Contributor

The regex to specify a specific XCTest to run did not specify that there should be no more text after the test ID. As a result, attempting to run a test like testFoo would also run a test in the same suite called testFooBar.

Swift-testing tests do not have the same issue as their IDs include the function parentheses and argument labels, and no text can appear after the closing paren.

Issue: #1084

The regex to specify a specific XCTest to run did not specify that there
should be no more text after the test ID. As a result, attempting to run
a test like `testFoo` would also run a test in the same suite called
`testFooBar`.

Swift-testing tests do not have the same issue as their IDs include the
function parentheses and argument labels, and no text can appear after
the closing paren.

Issue: swiftlang#1084
@plemarquand plemarquand merged commit 2dad6d7 into swiftlang:main Sep 20, 2024
8 checks passed
@plemarquand plemarquand deleted the fix-xctest-suffixes branch September 20, 2024 18: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