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

Enable customer center tests #4171

Merged
merged 4 commits into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ platform :ios do
configuration: 'Debug',
output_directory: "fastlane/test_output/xctest/ios",
number_of_retries: generate_snapshots ? 0 : 5,
fail_build: !generate_snapshots
fail_build: !generate_snapshots,
xcargs: "OTHER_SWIFT_FLAGS='-DCUSTOMER_CENTER_ENABLED'" # todo: remove once Customer Center is released
)
end

Expand Down Expand Up @@ -231,7 +232,8 @@ platform :ios do
report_formats: [:junit],
report_path: 'fastlane/test_output/revenuecatui/tests.xml',
test: true,
xcargs: generate_snapshots ? "-testPlan CI-Snapshots" : "-testPlan CI-RevenueCatUI"
# todo: remove CUSTOMER_CENTER_ENABLED once Customer Center is released
xcargs: "#{generate_snapshots ? '-testPlan CI-Snapshots' : '-testPlan CI-RevenueCatUI'} OTHER_SWIFT_FLAGS='-DCUSTOMER_CENTER_ENABLED'"
)
rescue => e
# Equivalent to `fail_build: !generate_snapshots`
Expand Down Expand Up @@ -302,6 +304,7 @@ platform :ios do
scheme: 'All API Tests',
destination: 'generic/platform=iOS Simulator',
configuration: 'release',
xcargs: "OTHER_SWIFT_FLAGS='-DCUSTOMER_CENTER_ENABLED'" # todo: remove once Customer Center is released
)
end

Expand Down