github square/workflow-kotlin v1.9.0-beta01

latest releases: v1.20.0, v1.19.0, v1.18.0...
pre-release2 years ago

What's Changed

  1. There are some breaking changes to the WorkerTester API. Namely: assertFinished() will also fail if the Worker has thrown and Error. This was considered not significant enough to warrant the concern over a 2.0 release but may require updates to client code.
  2. If nextOutput() causes the Worker to throw an exception, this will now be wrapped in an AssertionError. The Worker's exception itself can be retrieved with getException().
  3. The WorkerTester is now run inside a TestScope and if the test needs to access the scheduler for this to manipulate virtual time it is available as testCoroutineScheduler. This means that this can be handled within the WorkerTester's test itself, rather than setting up a CoroutineDispatcher for the backing flow to flowOn and manipulating that.

Full Changelog: v1.8.0-beta13...v1.9.0-beta01

Don't miss a new workflow-kotlin release

NewReleases is sending notifications on new releases.