xcparse icon indicating copy to clipboard operation
xcparse copied to clipboard

[BUG] xcparse screenshots --activity-type testAssertionFailure stopped working with Xcode 14.2

Open paulz opened this issue 2 years ago • 3 comments

Describe the bug xcparse screenshots result.xcresult --activity-type testAssertionFailure does not extract screenshot of failure

Desktop (please complete the following information):

  • OS:
ProductName:	macOS
ProductVersion:	12.6.2
BuildVersion:	21G320
  • xcparse Version: 2.3.1
  • Swift version: swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
  • XCResult version: 3.39

To Reproduce Steps to reproduce the behavior:

  1. Run a failing UI Test in Xcode 12.4
  2. Run: xcparse screenshots result.xcresult --activity-type testAssertionFailure where result.xcresult Xcode result bundle path
  3. See no screenshots extracted

Expected behavior we had it working with previous versions of Xcode and got screenshots extracted

paulz avatar Jan 19 '23 06:01 paulz

@paulz Will take a look this weekend at reproducing; if you have an example xcresult you're willing to share, please do.

abotkin-cpi avatar Apr 18 '23 23:04 abotkin-cpi

@abotkin-cpi it fails for me every time everywhere, so should be very easy to reproduce. Please let me know if you can't reproduce and share your example project and I will run it on my machine.

paulz avatar Apr 22 '23 23:04 paulz

Test-MyApp-2023.04.22_16-19-15--0700.xcresult.zip

running xcparse: xcparse screenshots Test-MyApp-2023.04.22_16-19-15--0700.xcresult --activity-type testAssertionFailure extracts no screenshots for me.

while opening this result bundle in Xcode shows failure screenshot:

image

Xcode 14.3

paulz avatar Apr 22 '23 23:04 paulz