Find a good way to unit test Coroutines in Common code

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      On the JVM there is {{runBlocking { }}} which is super helpful for writing coroutines unit tests. Unfortunately, this isn't available in common code. This issue https://github.com/Kotlin/kotlinx.coroutines/issues/1996 have a few proposed work-arounds but my immediate attempt at adopting it failed.

      We need to investigate what the best way is for writing unit tests involving coroutines.

            Assignee:
            Unassigned
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Archived: