Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get "Process completed with exit code 65" when I use "assertSnapshot(of: vc, as: .image)" function on GitHub Actions. #841

Closed
HappyIosDeveloper opened this issue Mar 24, 2024 · 2 comments

Comments

@HappyIosDeveloper
Copy link

HappyIosDeveloper commented Mar 24, 2024

My code passes all the tests with no problem on GitHub Automations...
but when I use the test functions of the snapshot testing, the CI fails with this error:

** TEST FAILED **

Testing started
Test suite 'X' started on 'Clone 1 of iPhone 11 - X (3927)'
Test case 'X.testExample()' failed on 'Clone 1 of iPhone 11 - X (3927)' (0.379 seconds)
Test case 'X.testPerformanceExample()' passed on 'Clone 1 of iPhone 11 - X (3927)' (0.264 seconds)
Error: Process completed with exit code 65.

and here is how I use the snapshot testing:

import SnapshotTesting
let vc = MyViewController()
assertSnapshot(of: vc, as: .image)

Snapshot testing is passing on my machine.
I searched a lot and I don't know how to solve this problem...

@JavierLaguna
Copy link

I have the same issue, any ideas? I also tested with "precision: 0.9"
https://github.com/JavierLaguna/Composable-SwiftUI/actions/runs/11100272799/job/30835812247?pr=16

@JavierLaguna
Copy link

finally I solved using the same simulator on my local Xcode and on the pipeline, in my case "iPhone 16 Pro (18.0)" and using
"precision: 0.98"

https://github.com/JavierLaguna/Composable-SwiftUI/actions/runs/11147940930/job/30983435732?pr=18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants