We've been using swift-snapshot for a while now and locally everything seems to work correctly. Now we host our source on Azure Devops and manage our CI/CD there. We've checked in our Snapshots (isRecording = true) in main. I've modified the source code (changed some texts) so tests are failing.
However, when running Xcodebuild in Azure Devops, all the tests are succeeding when they fail locally and I expect them to fail on the pipeline as well. When extracting the .xcresult with XCParse to get the screenshots I've noticed there are no screenshots in there.
I am wondering if someone knows whats causing this or is able to point me into the right direction to debug this.
Hi,
We've been using swift-snapshot for a while now and locally everything seems to work correctly. Now we host our source on Azure Devops and manage our CI/CD there. We've checked in our Snapshots (isRecording = true) in main. I've modified the source code (changed some texts) so tests are failing.
However, when running Xcodebuild in Azure Devops, all the tests are succeeding when they fail locally and I expect them to fail on the pipeline as well. When extracting the .xcresult with XCParse to get the screenshots I've noticed there are no screenshots in there.
I am wondering if someone knows whats causing this or is able to point me into the right direction to debug this.
Azure Devops task (removed some personal info):
Produces the following xcodebuild command (removed placeholders):
xcodebuild -sdk iphoneos -configuration TST -workspace ../project.xcworkspace -scheme Release -destination platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2 clean build test archive -verbose -derivedDataPath /Users/runner/work/1/b/derived CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=__signingIdentity__ PROVISIONING_PROFILE=__guid__ PROVISIONING_PROFILE_SPECIFIER=
If more information is needed please let me know. Thank you in advance!