We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe58065 commit c83ae9bCopy full SHA for c83ae9b
1 file changed
Sources/Testing/Events/Recorder/Event.HumanReadableOutputRecorder.swift
@@ -187,11 +187,11 @@ extension Event {
187
/// - Returns: The fully qualified name, with display name substituted if
188
/// available.
189
private func fullyQualifiedName(for failedTest: FailedTest) -> String {
190
- var name = failedTest.path.joined(separator: "/")
+ var name = failedTest.path.dropFirst().joined(separator: "/")
191
192
// Use display name for the last component if available
193
if let displayName = failedTest.displayName, !failedTest.path.isEmpty {
194
- let pathWithoutLast = failedTest.path.dropLast()
+ let pathWithoutLast = failedTest.path.dropFirst().dropLast()
195
name = (pathWithoutLast + [#""\#(displayName)""#]).joined(separator: "/")
196
}
197
0 commit comments