From 1bb38468d6b2f4da99073e3298642364964eec9c Mon Sep 17 00:00:00 2001 From: VaultIt Dev Date: Mon, 11 May 2020 13:00:29 -0600 Subject: [PATCH] [master] - Come on Travis, find XCTest for me, please? - TT --- Workflow.xcodeproj/project.pbxproj | 10 ++++++++++ Workflow/TestOnly/WorkflowListener.swift | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Workflow.xcodeproj/project.pbxproj b/Workflow.xcodeproj/project.pbxproj index 2f4280cb8..fd2895eb4 100644 --- a/Workflow.xcodeproj/project.pbxproj +++ b/Workflow.xcodeproj/project.pbxproj @@ -1241,6 +1241,11 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "\"${PODS_CONFIGURATION_BUILD_DIR}/Swinject\"", + "$(PLATFORM_DIR)/Developer/Library/Frameworks", + ); INFOPLIST_FILE = Workflow/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; @@ -1271,6 +1276,11 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "\"${PODS_CONFIGURATION_BUILD_DIR}/Swinject\"", + "$(PLATFORM_DIR)/Developer/Library/Frameworks", + ); INFOPLIST_FILE = Workflow/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; diff --git a/Workflow/TestOnly/WorkflowListener.swift b/Workflow/TestOnly/WorkflowListener.swift index dc8408977..81cc64ad7 100644 --- a/Workflow/TestOnly/WorkflowListener.swift +++ b/Workflow/TestOnly/WorkflowListener.swift @@ -10,14 +10,14 @@ import Foundation import XCTest -public func XCTAssertWorkflowLaunched(listener: WorkflowListener, expectedFlowRepresentables:[AnyFlowRepresentable.Type]) { - XCTAssertNotNil(listener.workflow, "No workflow found") +public func XCTAssertWorkflowLaunched(listener: WorkflowListener, expectedFlowRepresentables:[AnyFlowRepresentable.Type], file: StaticString = #file, line: UInt = #line) { + XCTAssertNotNil(listener.workflow, "No workflow found", file: file, line: line) guard let workflow = listener.workflow, expectedFlowRepresentables.count == workflow.count else { - XCTFail("workflow does not contain correct representables: \(String(describing: listener.workflow?.compactMap { String(describing: $0.value.flowRepresentableType) }) )") + XCTFail("workflow does not contain correct representables: \(String(describing: listener.workflow?.compactMap { String(describing: $0.value.flowRepresentableType) }) )", file: file, line: line) return } XCTAssertEqual(workflow.compactMap { String(describing: $0.value.flowRepresentableType) }, - expectedFlowRepresentables.map { String(describing: $0) }) + expectedFlowRepresentables.map { String(describing: $0) }, file: file, line: line) } public class WorkflowListener {