Skip to content

Commit

Permalink
Update DarockBili_Watch_App_UI_Tests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Nov 18, 2023
1 parent bdb059a commit 91b0cb8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,11 @@ extension XCTestCase {
attachment.name = name
attachment.lifetime = .keepAlways
add(attachment)

if let derivedDataPath = ProcessInfo.processInfo.environment["DERIVED_DATA"] {
let attachmentsDirectory = URL(fileURLWithPath: derivedDataPath).appendingPathComponent("Attachments")
let url = attachmentsDirectory.appendingPathComponent(name)
try! screenshot.pngRepresentation.write(to: url)
}
}
}

0 comments on commit 91b0cb8

Please sign in to comment.