-
-
Notifications
You must be signed in to change notification settings - Fork 76
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 Swift Testing Capture Groups #373
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #373 +/- ##
=======================================
Coverage 90.91% 90.91%
=======================================
Files 17 17
Lines 2454 2454
=======================================
Hits 2231 2231
Misses 223 223 ☔ View full report in Codecov by Sentry. |
3d59e39
to
443fefc
Compare
443fefc
to
9910af1
Compare
9910af1
to
453db5a
Compare
@@ -2010,7 +2010,7 @@ struct SwiftTestingRunStartedCaptureGroup: CaptureGroup { | |||
|
|||
/// Regular expression to capture the start of a test run. | |||
/// $1 = message | |||
static let regex = XCRegex(pattern: #"^.\s+(Test run started\.)$"#) | |||
static let regex = XCRegex(pattern: #"^ (Test run started\.)$"#) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: There's a special character at the start of these regexes that GitHub doesn't render.
@@ -171,7 +171,7 @@ final class ParserTests: XCTestCase { | |||
} | |||
|
|||
func testMatchSwiftTestingRunStarted() throws { | |||
let input = " Test run started." | |||
let input = " Test run started." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked against example project using Swift Testing. Updated these since they need two spaces – as seen in swift_test_log.txt
. These files don't render the leading symbol.
No description provided.