wwt / SwiftCurrent

A library for managing complex workflows in Swift

Home Page:https://wwt.github.io/SwiftCurrent/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: Allow XCTAssertWorkflowLaunched to accept AnyWorkflow

nallick opened this issue · comments

What prompted this feature request?

Creating a data driven workflow gives me a type erased AnyWorkflow. I want to be able to write a unit test to ensure said workflow was launched, however XCTAssertWorkflowLaunched() is generic on the workflow's FlowRepresentable type and this can't be determined for a type erased workflow.

Describe the solution you'd like

Provide an overloaded non-generic version of XCTAssertWorkflowLaunched() that accepts AnyWorkflow.

Describe alternatives you've considered

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Released in Fixed in 5.1.6