Skip to content

v1.9.0-beta01

Pre-release
Pre-release
Compare
Choose a tag to compare
@steve-the-edwards steve-the-edwards released this 13 Feb 19:36
· 567 commits to main since this release

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