Use Tuist workspace for BackendIntegrationTests in CI#6774
Merged
Conversation
2 tasks
The scheme previously only linked BackendIntegrationTests-All-CI, so xcodebuild's -testPlan flag would fail to resolve the individual plans (SK1, SK2, Offline, etc.) used by each CI job. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without an explicit workspace, fastlane's scan autodiscovered RevenueCat.xcodeproj instead of the Tuist-generated workspace. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The run-backend-tests job previously relied on RevenueCat.xcodeproj via scan's autodiscovery. Adding tuist-generate-workspace ensures the RevenueCat-Tuist.xcworkspace exists before fastlane runs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The host app was incorrectly configured with APPLICATION_EXTENSION_API_ONLY=YES and ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION, which don't match the old xcodeproj and caused test failures when running from the Tuist workspace. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All 8 BackendIntegrationTests test plans hardcoded container:RevenueCat.xcodeproj with old xcodeproj target UUIDs. In the Tuist workspace, these targets live in RevenueCatTests.xcodeproj — xcodebuild couldn't find any test bundles without this. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The Tuist BackendCustomEntitlementsIntegrationTests target links only RevenueCat_CustomEntitlementComputation, but several sources imported the plain RevenueCat module, leaving RevenueCat.* symbols undefined at link time. - Exclude the SK1/SK2 product fetchers and observer/external purchase managers from the target glob (they import RevenueCat directly and aren't used here) - Guard MainThreadMonitor and StoreKitTestHelpers with the existing ENABLE_CUSTOM_ENTITLEMENT_COMPUTATION conditional import Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1aa797b to
17d39dd
Compare
The BackendCustomEntitlementsIntegrationTests target didn't bundle RevenueCat_IntegrationPurchaseTesterConfiguration.storekit, so SKTestSession(configurationFileNamed:) failed at runtime with SKTestErrorDomain Code=4 "File not found". Add the resource, matching the regular BackendIntegrationTests target. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ajpallares
approved these changes
Jun 15, 2026
ajpallares
left a comment
Member
There was a problem hiding this comment.
Makes sense! A bit closer now! 💪 Thanks!
Member
Author
|
|
facumenzella
added a commit
that referenced
this pull request
Jun 15, 2026
…oj (#7006) These targets (BackendIntegrationTests, BackendCustomEntitlementsIntegrationTests, BackendIntegrationTestsHostApp) now run via RevenueCat-Tuist.xcworkspace after #6774, so they're dead weight in the legacy project. Also removes the dead BackendIntegrationTests scheme and the now-orphaned file/group references. Test source files stay on disk (owned by the Tuist RevenueCatTests project). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run-backend-testsCI job to build from the Tuist-generated workspace (RevenueCat-Tuist.xcworkspace) instead of the legacyRevenueCat.xcodeprojtuist-generate-workspacestep (withinclude_test_dependencies: true) torun-backend-testsbefore invoking fastlanebackend_integration_testsFastfile lane to the Tuist workspace explicitly viaworkspace: 'RevenueCat-Tuist.xcworkspace'-testPlanflag can resolve each one (SK1, SK2, Offline, Other, CustomEntitlements, LoadShedder, All, All-CI)Part of the longer-term goal of deleting
RevenueCat.xcodeproj+RevenueCat.xcworkspace.Test plan
backend-integration-tests-SK1throughbackend-integration-tests-offlinejobs passbackend-integration-tests-custom-entitlementspasses🤖 Generated with Claude Code
Note
Medium Risk
Changes how backend integration tests are built and which SDK module the custom-entitlements target links; failures would show up as CI breakage rather than shipping SDK regressions, but purchase/backend coverage depends on these jobs.
Overview
Moves BackendIntegrationTests CI onto the Tuist-generated
RevenueCat-Tuist.xcworkspace:run-backend-testsnow runstuist-generate-workspacewithinclude_test_dependencies: true, and thebackend_integration_testsFastlane lane passesworkspace: 'RevenueCat-Tuist.xcworkspace'toscan.All eight
.xctestplanfiles now point atRevenueCatTests.xcodeprojand updated target identifiers instead ofRevenueCat.xcodeproj. The TuistBackendIntegrationTestsscheme registers every test plan (All, All-CI, SK1, SK2, Offline, Other, CustomEntitlements, LoadShedder) so CI-testPlanselection still works.Projects/RevenueCatTests/Project.swifttrims host-app build settings, tightensBackendCustomEntitlementsIntegrationTests(excludes RevenueCat-only helpers, adds StoreKit config resource), and wires the full test-plan list on the scheme.MainThreadMonitor.swiftandStoreKitTestHelpers.swiftuse conditional imports so they compile in both the standard and custom-entitlement test targets.Reviewed by Cursor Bugbot for commit 60ea68c. Bugbot is set up for automated code reviews on this repo. Configure here.