Skip to content

Commit

Permalink
[master] - Come on Travis, find XCTest for me, please? - TT
Browse files Browse the repository at this point in the history
  • Loading branch information
VaultIt Dev committed May 11, 2020
1 parent 6f15a85 commit 1bb3846
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Workflow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions Workflow/TestOnly/WorkflowListener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1bb3846

Please sign in to comment.