Skip to content

Commit 10f43e4

Browse files
authored
build: update tests scheme name to fix tests report format (SDKCF-5616)
1 parent 1c7a009 commit 10f43e4

File tree

8 files changed

+31
-24
lines changed

8 files changed

+31
-24
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
bundle exec pod install
1919
xcodebuild \
2020
-workspace RSDKUtils.xcworkspace \
21-
-scheme Tests \
21+
-scheme TestHost \
2222
-resultBundlePath artifacts/unit-tests/Tests \
2323
-destination "platform=iOS Simulator,name=iPhone 11" \
2424
test

.travis.yml

-9
This file was deleted.

Dangerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ warn("Big PR") if git.lines_of_code > 500
33

44
xcov.report(
55
workspace: 'RSDKUtils.xcworkspace',
6-
scheme: 'Tests',
6+
scheme: 'TestHost',
77
output_directory: 'artifacts/unit-tests/coverage',
88
source_directory: 'Sources',
99
json_report: true,

Podfile.lock

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
PODS:
22
- Nimble (9.2.1)
33
- Quick (5.0.1)
4-
- RSDKUtils (3.0.0):
5-
- RSDKUtils/Main (= 3.0.0)
6-
- RSDKUtils/Main (3.0.0):
4+
- RSDKUtils (4.0.0):
5+
- RSDKUtils/Main (= 4.0.0)
6+
- RSDKUtils/Main (4.0.0):
77
- RSDKUtils/RLogger
8-
- RSDKUtils/Nimble (3.0.0):
8+
- RSDKUtils/Nimble (4.0.0):
99
- Nimble
1010
- RSDKUtils/Main
11-
- RSDKUtils/RLogger (3.0.0)
12-
- RSDKUtils/TestHelpers (3.0.0):
11+
- RSDKUtils/RLogger (4.0.0)
12+
- RSDKUtils/TestHelpers (4.0.0):
1313
- RSDKUtils/Main
14-
- SwiftLint (0.47.0)
14+
- SwiftLint (0.48.0)
1515

1616
DEPENDENCIES:
1717
- Nimble
@@ -35,8 +35,8 @@ EXTERNAL SOURCES:
3535
SPEC CHECKSUMS:
3636
Nimble: e7e615c0335ee4bf5b0d786685451e62746117d5
3737
Quick: 749aa754fd1e7d984f2000fe051e18a3a9809179
38-
RSDKUtils: 36d97c9a41b5663ba56e73c626d27034a6c317e5
39-
SwiftLint: d41cc46a2ae58ac6d9f26954bc89f1d72e71fdef
38+
RSDKUtils: e2a63eb729298706abe02e735436a2586c65e164
39+
SwiftLint: 284cea64b6187c5d6bd83e9a548a64104d546447
4040

4141
PODFILE CHECKSUM: 4ed9773263044cef845ee896ef054d609b9a1edc
4242

RSDKUtils.xcodeproj/xcshareddata/xcschemes/Tests.xcscheme RSDKUtils.xcodeproj/xcshareddata/xcschemes/TestHost.xcscheme

+16-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<BuildActionEntries>
99
<BuildActionEntry
1010
buildForTesting = "YES"
11-
buildForRunning = "YES"
11+
buildForRunning = "NO"
1212
buildForProfiling = "YES"
13-
buildForArchiving = "YES"
13+
buildForArchiving = "NO"
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
@@ -20,6 +20,20 @@
2020
ReferencedContainer = "container:RSDKUtils.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "D06A23ED24D4007300E84EE2"
32+
BuildableName = "TestHost.app"
33+
BlueprintName = "TestHost"
34+
ReferencedContainer = "container:RSDKUtils.xcodeproj">
35+
</BuildableReference>
36+
</BuildActionEntry>
2337
</BuildActionEntries>
2438
</BuildAction>
2539
<TestAction

Tests/Tests/KeyStoreTests.swift

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Nimble
88

99
class KeyStoreSpec: QuickSpec {
1010
override func spec() {
11+
#if !SWIFT_PACKAGE
1112
// Keychain can't be mocked so the best we can do
1213
// to isolate the tests is to use a separate
1314
// keychain service
@@ -66,5 +67,6 @@ class KeyStoreSpec: QuickSpec {
6667
expect(keyStore.key(for: "key-id-4")).to(beNil())
6768
}
6869
}
70+
#endif
6971
}
7072
}

fastlane/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
REM_FL_TESTS_SCHEME=Tests
1+
REM_FL_TESTS_SCHEME=TestHost
22
REM_FL_TESTS_DEVICE=iPhone 11
33
REM_FL_TESTS_PROJECT=./RSDKUtils.xcodeproj
44
REM_FL_TESTS_WORKSPACE=./RSDKUtils.xcworkspace

fastlane/Fastfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ platform :ios do
2020
skip_build: true,
2121
output_directory: './artifacts/unit-tests',
2222
scheme: ENV['REM_FL_TESTS_SCHEME'] || 'Tests',
23-
device: ENV['REM_FL_TESTS_DEVICE'] || 'REM SDK Unit Tests',
23+
device: ENV['REM_FL_TESTS_DEVICE'] || 'iPhone 11',
2424
code_coverage: true,
2525
output_types: 'json-compilation-database,html,junit',
2626
output_files: 'compile_commands.json,report.html,report.junit')

0 commit comments

Comments
 (0)