pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.68k stars 556 forks source link

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

Open HappyIosDeveloper opened 3 months ago

HappyIosDeveloper commented 3 months ago

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...