Kotlinx.coroutines: Integrate TestCoroutineContext with structured concurrency

Created on 10 Sep 2018  路  4Comments  路  Source: Kotlin/kotlinx.coroutines

TestCoroutineContext (#297) should be integrated with structured concurrency (#410), so that all builders can be used inside the test context (custom builder-extension to be deprecated).

enhancement

Most helpful comment

See https://github.com/Kotlin/kotlinx.coroutines/pull/890 for a draft API that would do this integration. I expect it'll go through some changes during review.

Files are still in the same place - it's mostly up for API review right now. After https://github.com/Kotlin/kotlinx.coroutines/pull/749 lands if this API is promising it should migrate to kotlinx-coroutines-test.

Thanks,
Sean

All 4 comments

The good idea is to extract TestCoroutineContext and TestBase into a separate module, maybe getting rid of inheritance

I'm taking a look at putting together a PR for this.

See https://github.com/Kotlin/kotlinx.coroutines/pull/890 for a draft API that would do this integration. I expect it'll go through some changes during review.

Files are still in the same place - it's mostly up for API review right now. After https://github.com/Kotlin/kotlinx.coroutines/pull/749 lands if this API is promising it should migrate to kotlinx-coroutines-test.

Thanks,
Sean

Fixed in 1.2.1

Was this page helpful?
0 / 5 - 0 ratings