mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/25416 Use CocoaPods-based RNTesterPods workspace to run iOS unit tests and integration tests. This is necessary as new iOS projects now use CocoaPods by default. CocoaPods also powers the new package auto-linking feature. In order to provide test coverage for this new default configuration, our iOS tests are being migrated to use a CocoaPods-managed RNTester workspace. This applies to both Circle CI, and Sandcastle. Changelog: [iOS] [Changed] - Use RNTesterPods for iOS Tests Reviewed By: fkgozali Differential Revision: D16052466 fbshipit-source-id: 724b0c51008882d3c06a9074693fe23e74abe86b
44 lines
1.1 KiB
Ruby
44 lines
1.1 KiB
Ruby
platform :ios, '9.0'
|
|
|
|
require_relative '../scripts/autolink-ios'
|
|
|
|
def pods()
|
|
# Uncomment for Swift
|
|
# use_frameworks!
|
|
|
|
project 'RNTesterPods.xcodeproj'
|
|
|
|
# Enable TurboModule
|
|
use_react_native!(path: "..", turbo_modules_enabled: true)
|
|
pod 'React-turbomodule-samples', :path => '../ReactCommon/turbomodule/samples'
|
|
|
|
# Additional Pods which aren't included in the default Podfile
|
|
pod 'React-ART', :path => '../Libraries/ART'
|
|
pod 'React-RCTPushNotification', :path => '../Libraries/PushNotificationIOS'
|
|
|
|
# Additional Pods which are classed as unstable
|
|
#
|
|
# To use fabric: add `fabric_enabled` option to the use_react_native method above, like below
|
|
# use_react_native!(path: "..", turbo_modules_enabled: true, fabric_enabled: true)
|
|
end
|
|
|
|
target 'RNTester' do
|
|
pods()
|
|
end
|
|
|
|
target 'RNTesterUnitTests' do
|
|
pods()
|
|
pod 'React-RCTTest', :path => "RCTTest"
|
|
end
|
|
|
|
target 'RNTesterIntegrationTests' do
|
|
pods()
|
|
pod 'React-RCTTest', :path => "RCTTest"
|
|
end
|
|
|
|
post_install do |installer|
|
|
installer.pods_project.targets.each do |target|
|
|
puts target.name
|
|
end
|
|
end
|