Skip to content

Commit c517adf

Browse files
committed
Extract scheme for testing in Fastlane in constant
1 parent db28955 commit c517adf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fastlane/Fastfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ SCREENSHOT_DEVICES = [
2828
MAIN_BUNDLE_IDENTIFIERS = %w[com.automattic.woocommerce].freeze # Registered in our main account, for development and AppStore
2929
ALPHA_BUNDLE_IDENTIFIERS = %w[com.automattic.alpha.woocommerce].freeze # Registered in our Enterprise account, for App Center / Installable Builds
3030

31+
TEST_SCHEME = 'WooCommerce'
32+
3133
# List of `.strings` files manually maintained by developers (as opposed to being automatically extracted from the code)
3234
# which we will merge into the main `Localizable.strings` file imported by GlotPress, then extract back once we download the translations.
3335
#
@@ -556,7 +558,7 @@ platform :ios do
556558
lane :build_for_testing do |options|
557559
run_tests(
558560
workspace: 'WooCommerce.xcworkspace',
559-
scheme: 'WooCommerce',
561+
scheme: TEST_SCHEME,
560562
derived_data_path: 'DerivedData',
561563
build_for_testing: true,
562564
device: options[:device],
@@ -1046,7 +1048,7 @@ lane :test_without_building do |options|
10461048

10471049
run_tests(
10481050
workspace: 'WooCommerce.xcworkspace',
1049-
scheme: 'WooCommerce',
1051+
scheme: TEST_SCHEME,
10501052
device: options[:device],
10511053
deployment_target_version: options[:ios_version],
10521054
test_without_building: true,

0 commit comments

Comments
 (0)