Bill Phillips Few Tools: How To Write And Understand! Coroutines Tests

preview_player
Показать описание
I thought that writing coroutines tests would be easy: look at the testing APIs, write the tests. Done! But that didn’t work. Why not??

It turns out that most of the tools you need to write great coroutines tests are right there in the Kotlin coroutines APIs. It just requires some discipline in using them.

In this talk, I’ll cover the approaches we have settled on within Cash App for writing testable coroutines-based components and for writing coroutines tests. You’ll get a clear rubric of what NOT to do that you can apply in code review. We’ve found that coroutines-based tests of asynchronous components are far more powerful and readable than other approaches, and I hope to show you that, too.
Рекомендации по теме