ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Add reusable unit tests for `DefaultWorker` workers #635

Closed lawrence-forooghian closed 1 year ago

lawrence-forooghian commented 1 year ago

Note: this is based on top of #539 (it reuses the MultipleErrors type). Please don't merge this one until that one is merged.

This adds a set of reusable unit tests that verify that a worker type provides the behaviours implemented by the DefaultWorker protocol.

I’ll first be using it in the unit tests for the upcoming UpdatePublisherPresence worker. Here is an example of how it looks in action.

See commit messages for more details.