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 (the name of the type has changed slightly since I wrote that, from DefaultWorkerTestEnvironment to DefaultWorkerTestScenarios).
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 (the name of the type has changed slightly since I wrote that, fromDefaultWorkerTestEnvironment
toDefaultWorkerTestScenarios
).See commit messages for more details.