wwt / SwiftCurrent

A library for managing complex workflows in Swift
https://wwt.github.io/SwiftCurrent/
Apache License 2.0
307 stars 19 forks source link

[Feature]: Allow XCTAssertWorkflowLaunched to accept AnyWorkflow #208

Closed nallick closed 2 years ago

nallick commented 2 years ago

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

Tyler-Keith-Thompson commented 2 years ago

Released in Fixed in 5.1.6