@@ -178,7 +178,7 @@ extension Event.AdvancedConsoleOutputRecorder {
178
178
179
179
/// Get the tree first branch character (┌─).
180
180
private var _treeFirstBranch : String {
181
- _treeCharacter ( unicode: " ┌─ " , ascii: " . - " )
181
+ _treeCharacter ( unicode: " ┌─ " , ascii: " - - " )
182
182
}
183
183
184
184
/// Get the tree vertical line character (│).
@@ -273,6 +273,7 @@ extension Event.AdvancedConsoleOutputRecorder {
273
273
}
274
274
275
275
/// Parse a test ID into a key path suitable for Graph insertion.
276
+ /// Uses existing Test.ID infrastructure and backtick-aware parsing.
276
277
///
277
278
/// Examples:
278
279
/// - "TestingTests.ClockAPITests/testMethod()" -> ["TestingTests", "ClockAPITests", "testMethod()"]
@@ -282,13 +283,8 @@ extension Event.AdvancedConsoleOutputRecorder {
282
283
/// - testID: The test ID to parse.
283
284
/// - Returns: An array of key path components.
284
285
private func _parseTestIDToKeyPath( _ testID: String ) -> [ String ] {
285
- // Swift Testing test IDs include source location information
286
- // We need to extract the logical hierarchy path without source locations
287
- // Examples:
288
- // Suite: "TestingTests.HierarchyDemoTests/NestedSuite"
289
- // Test: "TestingTests.HierarchyDemoTests/failingTest()/HierarchyDemoTests.swift:21:4"
290
-
291
- let components = testID. split ( separator: " / " ) . map ( String . init)
286
+ // Use backtick-aware split for proper handling of raw identifiers
287
+ let components = rawIdentifierAwareSplit ( testID, separator: " / " ) . map ( String . init)
292
288
var logicalPath : [ String ] = [ ]
293
289
294
290
for component in components {
@@ -304,7 +300,7 @@ extension Event.AdvancedConsoleOutputRecorder {
304
300
var keyPath : [ String ] = [ ]
305
301
306
302
if let firstComponent = logicalPath. first {
307
- let moduleParts = firstComponent . split ( separator: " . " ) . map ( String . init)
303
+ let moduleParts = rawIdentifierAwareSplit ( firstComponent , separator: " . " ) . map ( String . init)
308
304
keyPath. append ( contentsOf: moduleParts)
309
305
310
306
// Add any additional path components (for nested suites)
0 commit comments