No video

Testing Coroutines on Android (Android Dev Summit '19)

  Рет қаралды 43,283

Android Developers

Android Developers

Күн бұрын

Пікірлер: 14
@adamhurwitz
@adamhurwitz 4 жыл бұрын
runBlockingTest - 6:20 TestCoroutineDispatcher - 11:05
@samp2300
@samp2300 2 жыл бұрын
I didn't get the point of the graph at the end of the video
@igorg.8624
@igorg.8624 4 жыл бұрын
Is there a google sample for this approach on Github?
@coonskinniggs
@coonskinniggs 3 жыл бұрын
There is a well written code-lab named Advanced Android Testing [5.1 to 5.3] which covers all the good testing stuff. FYI, I know it's a very late reply. :D
@daynyong
@daynyong 2 жыл бұрын
Thanks for the great video. It seems that Deferred(result of coroutine async function) inherits Job which is cancellable. Has async implementation changed after this video or have I misunderstood 'suspend vs deferred' part?
@pedromoniz4224
@pedromoniz4224 4 жыл бұрын
Is there any resource for what that MainCoroutinerule actually is? There is little documentation and all these mechanisms require a bunch of prep, dunno why you jumped over it. Also, how does this mechanism affect live data? I also have a mechanism that allows me to run the work on IO and resolve the work in MAIN. So not only I have launch I also have async await. Any way to test this?
@seanmcquillan7834
@seanmcquillan7834 4 жыл бұрын
Yep, it's not in a library (we didn't want to add any JUnit dependencies to kotlinx-coroutines-test), but this one by Rick Busarrow is a good place to start: gist.github.com/RBusarow/70256d782e2d789cfa167a0163b2e22e
@revm4942
@revm4942 4 жыл бұрын
​@@seanmcquillan7834 Hi I have a question, on the example above the coroutine was launched with viewModelScope right and it uses Dispatchers.Main as default, what if I want to use Dispatchers.IO when inserting an entry in the Database, can I just wrap the suspend function body in the repository with `withContext(Dispatchers.IO)` and still test it with `runBlockingTest` right?
@RakhiDhavale
@RakhiDhavale 4 жыл бұрын
Please mention the link to the repository where there are test cases for coroutines as per documentation
@jerarcaarthanis1461
@jerarcaarthanis1461 4 жыл бұрын
still waiting for this hehe
@antoniokomangyudistira4150
@antoniokomangyudistira4150 4 жыл бұрын
Ughhh confused
Understanding Compose (Android Dev Summit '19)
36:15
Android Developers
Рет қаралды 72 М.
Understand Kotlin Coroutines on Android (Google I/O'19)
37:49
Android Developers
Рет қаралды 174 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 13 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 17 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 49 МЛН
KotlinConf 2017 - Introduction to Coroutines by Roman Elizarov
45:32
LiveData with Coroutines and Flow (Android Dev Summit '19)
18:44
Android Developers
Рет қаралды 110 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 147 М.
What's new in Android Studio Design Tools (Android Dev Summit '19)
37:45
Android Developers
Рет қаралды 20 М.
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 43 М.
Performance myth busters (Android Dev Summit '19)
30:51
Android Developers
Рет қаралды 13 М.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 440 М.
~/.dotfiles in 100 Seconds
13:54
Fireship
Рет қаралды 415 М.
Developing themes with style (Android Dev Summit '19)
40:56
Android Developers
Рет қаралды 59 М.
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 206 М.
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 13 МЛН