Skip to content

Commit

Permalink
[tests] update UnitTestApp to include the 2 new test modules
Browse files Browse the repository at this point in the history
- ENABLE_TESTABILITY in OneSignalUserTests and OneSignalCoreTests modules updated to match existing UnitTests
- UnitTestApp scheme updated to include OneSignalUserTests and OneSignalCoreTests test modules
- Now, the CI runs all tests automatically!
  • Loading branch information
nan-li committed Feb 21, 2024
1 parent bdb1416 commit a7c1143
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4220,6 +4220,7 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 99SW8E36CT;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -4322,6 +4323,7 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 99SW8E36CT;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -4547,6 +4549,7 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 99SW8E36CT;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
Expand Down Expand Up @@ -4647,6 +4650,7 @@
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 99SW8E36CT;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
GENERATE_INFOPLIST_FILE = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,34 @@
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3CC063EA2B6D7FE8002BB07F"
BuildableName = "OneSignalUserTests.xctest"
BlueprintName = "OneSignalUserTests"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3CC063A02B6D7A8D002BB07F"
BuildableName = "OneSignalCoreTests.xctest"
BlueprintName = "OneSignalCoreTests"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down Expand Up @@ -79,6 +107,20 @@
BlueprintName = "OneSignalUser"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3CC063EA2B6D7FE8002BB07F"
BuildableName = "OneSignalUserTests.xctest"
BlueprintName = "OneSignalUserTests"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3CC063A02B6D7A8D002BB07F"
BuildableName = "OneSignalCoreTests.xctest"
BlueprintName = "OneSignalCoreTests"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
Expand All @@ -91,6 +133,26 @@
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3CC063A02B6D7A8D002BB07F"
BuildableName = "OneSignalCoreTests.xctest"
BlueprintName = "OneSignalCoreTests"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "3CC063EA2B6D7FE8002BB07F"
BuildableName = "OneSignalUserTests.xctest"
BlueprintName = "OneSignalUserTests"
ReferencedContainer = "container:OneSignal.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ final class OneSignalUserTests: XCTestCase {
XCTAssertEqual(identityModelStoreExternalId, "my-external-id")
XCTAssertEqual(userInstanceExternalId, "my-external-id")
}

func testTemp() throws {
}
}

0 comments on commit a7c1143

Please sign in to comment.