File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/Testing/Events/Recorder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,11 +187,11 @@ extension Event {
187187 /// - Returns: The fully qualified name, with display name substituted if
188188 /// available.
189189 private func fullyQualifiedName( for failedTest: FailedTest ) -> String {
190- var name = failedTest. path. joined ( separator: " / " )
190+ var name = failedTest. path. dropFirst ( ) . joined ( separator: " / " )
191191
192192 // Use display name for the last component if available
193193 if let displayName = failedTest. displayName, !failedTest. path. isEmpty {
194- let pathWithoutLast = failedTest. path. dropLast ( )
194+ let pathWithoutLast = failedTest. path. dropFirst ( ) . dropLast ( )
195195 name = ( pathWithoutLast + [ #"" \#( displayName) ""# ] ) . joined ( separator: " / " )
196196 }
197197
You can’t perform that action at this time.
0 commit comments