Closed timkimadobe closed 4 days ago
@timkimadobe How about organizing the imports as follows:
import Foundation
import XCTest
// AEP module imports
import AEPIdentity
import AEPLifecycle
import AEPSignal
// Testable imports
@testable import AEPCore
@testable import AEPCoreMocks
@testable import AEPServices
Could you also update the Test Utils README.md to clarify what targets a new file should be added to between AEPServiceMocks and AEPCoreMocks?
Thanks for the review @praveek! Updated based on feedback
Description
This PR updates the Core project structure to separate the internal frameworks AEPServicesMocks and AEPCoreMocks entirely; dependence on AEPServicesMocks inside AEPCoreMocks files (via
import AEPServicesMocks
) were causing usage issues for dependent projects trying to use AEPTestUtils, since AEPServicesMocks doesn't exist outside of the Core project.AEPServicesMocks Compile Sources contain all the local Services mock files and AEPTestUtils files that only depend on AEPServices AEPCoreMocks Compile Sources contain all of AEPServicesMocks + local Core mock files and AEPTestUtils files that depend on Core
Also adds new Core test API to reset the SDK, and marks the EventHub reset API as deprecated:
Imports have also been cleaned up and organized:
ex:
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: