-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update React Native tests #179
base: integration/v3
Are you sure you want to change the base?
Conversation
features/react-native/ios.feature
Outdated
# --bundle=STRING The path to the bundled JavaScript file to upload | ||
# --code-bundle-id=STRING A unique identifier for the JavaScript bundle | ||
# --dev Indicates whether this is a debug or release build | ||
# --source-map=STRING The path to the source map file to upload | ||
# --version-name=STRING The version of the application | ||
# --bundle-version=STRING The bundle version of this build of the application (Apple platforms only) | ||
# --plist=STRING The path to a .plist file from which to obtain build information | ||
# --scheme=STRING The name of the Xcode options.Ios.Scheme used to build the application | ||
# --xcode-project=STRING The path to an Xcode project, workspace or containing directory from which to obtain build information | ||
# --xcarchive-path=PATH The path to the .xcarchive to process if it has been exported |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this has been erroneously copied in...
features/steps/steps.rb
Outdated
if ENV['RN_VERSION'].to_f == 0.70 | ||
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml" | ||
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/react/release/index.android.bundle" | ||
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | ||
elsif ENV['RN_VERSION'].to_f == 0.73 | ||
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml" | ||
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle" | ||
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | ||
elsif ENV['RN_VERSION'].to_f == 0.75 | ||
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml" | ||
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle" | ||
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about expressing it like this to make it clearer what the differences are? (It pushes the full feature path to the feature script and allows this to be just the differences between versions - so we can add new ones if the path changes again.)
if ENV['RN_VERSION'].to_f == 0.70 | |
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml" | |
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/react/release/index.android.bundle" | |
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | |
elsif ENV['RN_VERSION'].to_f == 0.73 | |
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml" | |
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle" | |
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | |
elsif ENV['RN_VERSION'].to_f == 0.75 | |
ENV['APP_MANIFEST_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml" | |
ENV['BUNDLE_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle" | |
ENV['SOURCE_MAP_PATH'] = "features/react-native/fixtures/generated/old-arch/#{ENV['RN_VERSION']}/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | |
end | |
ENV['APP_MANIFEST_PATH'] = "android/app/build/intermediates/merged_manifests/release/processReleaseManifest/AndroidManifest.xml" | |
ENV['BUNDLE_PATH'] = "android/app/build/generated/assets/createBundleReleaseJsAndAssets/index.android.bundle" | |
ENV['SOURCE_MAP_PATH'] = "android/app/build/generated/sourcemaps/react/release/index.android.bundle.map" | |
if ENV['RN_VERSION'].to_f < 0.75 | |
ENV['APP_MANIFEST_PATH'] = "android/app/build/intermediates/merged_manifests/release/AndroidManifest.xml" | |
elsif ENV['RN_VERSION'].to_f < 0.73 | |
ENV['BUNDLE_PATH'] = "android/app/build/generated/assets/react/release/index.android.bundle" |
Goal
Update the React Native iOS and Android tests to cover the escape hatches
Remove the old React Native fixture files.
Testing
Covered by CI