Skip to content

Commit dc05755

Browse files
authored
Add test coverage to podspecs. (#7228)
1 parent 6ffc845 commit dc05755

22 files changed

+39
-1
lines changed

FirebaseABTesting.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Firebase Cloud Messaging and Firebase Remote Config in your app.
4343
s.dependency 'FirebaseCore', '~> 7.0'
4444

4545
s.test_spec 'unit' do |unit_tests|
46+
unit_tests.scheme = { :code_coverage => true }
4647
unit_tests.source_files = 'FirebaseABTesting/Tests/Unit/**/*.[mh]'
4748
unit_tests.resources = 'FirebaseABTesting/Tests/Unit/Resources/*.txt'
4849
unit_tests.requires_app_host = true

FirebaseAppDistribution.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ iOS SDK for App Distribution for Firebase.
4141
}
4242

4343
s.test_spec 'unit' do |unit_tests|
44+
unit_tests.scheme = { :code_coverage => true }
4445
unit_tests.source_files = 'FirebaseAppDistribution/Tests/Unit*/*.[mh]'
4546
unit_tests.resources = 'FirebaseAppDistribution/Tests/Unit/Resources/*'
4647
unit_tests.dependency 'OCMock'

FirebaseAuth.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ supports email and password accounts, as well as several 3rd party authenticatio
4949
s.dependency 'GTMSessionFetcher/Core', '~> 1.4'
5050

5151
s.test_spec 'unit' do |unit_tests|
52+
unit_tests.scheme = { :code_coverage => true }
5253
# Unit tests can't run on watchOS.
5354
unit_tests.platforms = {:ios => '10.0', :osx => '10.12', :tvos => '10.0'}
5455
unit_tests.source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'

FirebaseCore.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Firebase Core includes FIRApp and FIROptions which provide central configuration
5656
'OTHER_CFLAGS' => '-fno-autolink'
5757
}
5858
s.test_spec 'unit' do |unit_tests|
59+
unit_tests.scheme = { :code_coverage => true }
5960
unit_tests.platforms = {:ios => ios_deployment_target, :osx => osx_deployment_target, :tvos => tvos_deployment_target}
6061
unit_tests.source_files = [
6162
'FirebaseCore/Tests/Unit/**/*.[mh]',

FirebaseCoreDiagnostics.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ non-Cocoapod integration. This library also respects the Firebase global data co
6363
s.dependency 'nanopb', '~> 2.30907.0'
6464

6565
s.test_spec 'unit' do |unit_tests|
66+
unit_tests.scheme = { :code_coverage => true }
6667
unit_tests.platforms = {
6768
:ios => ios_deployment_target,
6869
:osx => osx_deployment_target,

FirebaseCrashlytics.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Pod::Spec.new do |s|
9797
}
9898

9999
s.test_spec 'unit' do |unit_tests|
100+
unit_tests.scheme = { :code_coverage => true }
100101
# Unit tests can't run on watchOS.
101102
unit_tests.platforms = {:ios => '10.0', :osx => '10.12', :tvos => '10.0'}
102103
unit_tests.source_files = 'Crashlytics/UnitTests/*.[mh]',

FirebaseDatabase.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Simplify your iOS development, grow your user base, and monetize more effectivel
4242
}
4343

4444
s.test_spec 'unit' do |unit_tests|
45+
unit_tests.scheme = { :code_coverage => true }
4546
unit_tests.source_files = [
4647
'FirebaseDatabase/Tests/Unit/*.[mh]',
4748
'FirebaseDatabase/Tests/Helpers/*.[mh]',
@@ -56,6 +57,7 @@ Simplify your iOS development, grow your user base, and monetize more effectivel
5657
end
5758

5859
s.test_spec 'integration' do |int_tests|
60+
int_tests.scheme = { :code_coverage => true }
5961
int_tests.source_files = [
6062
'FirebaseDatabase/Tests/Integration/*.[mh]',
6163
'FirebaseDatabase/Tests/Helpers/*.[mh]',

FirebaseDynamicLinks.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Firebase Dynamic Links are deep links that enhance user experience and increase
3838
}
3939

4040
s.test_spec 'unit' do |unit_tests|
41+
unit_tests.scheme = { :code_coverage => true }
4142
unit_tests.source_files = [
4243
'FirebaseDynamicLinks/Tests/Unit/*.[mh]',
4344
]

FirebaseFunctions.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Cloud Functions for Firebase.
3939
}
4040

4141
s.test_spec 'unit' do |unit_tests|
42+
unit_tests.scheme = { :code_coverage => true }
4243
unit_tests.source_files = [
4344
'Functions/Example/Test*/*.[mh]',
4445
'SharedTestUtilities/FIRAuthInteropFake*',
@@ -47,6 +48,7 @@ Cloud Functions for Firebase.
4748
end
4849

4950
s.test_spec 'integration' do |int_tests|
51+
int_tests.scheme = { :code_coverage => true }
5052
int_tests.source_files = 'Functions/Example/IntegrationTests/*.[mh]',
5153
'Functions/Example/TestUtils/*.[mh]',
5254
'SharedTestUtilities/FIRAuthInteropFake*',

FirebaseInAppMessaging.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ See more product details at https://firebase.google.com/products/in-app-messagin
8989
s.dependency 'nanopb', '~> 2.30907.0'
9090

9191
s.test_spec 'unit' do |unit_tests|
92+
unit_tests.scheme = { :code_coverage => true }
9293
unit_tests.source_files = 'FirebaseInAppMessaging/Tests/Unit/*.[mh]'
9394
unit_tests.resources = 'FirebaseInAppMessaging/Tests/Unit/*.txt'
9495
unit_tests.requires_app_host = true
9596
unit_tests.dependency 'OCMock'
9697
end
97-
end
98+
end

0 commit comments

Comments
 (0)