Skip to content

androidx.arch.core:core-testing

Official Description: Android Core-Testing

CommonsWare's Notes

This artifact provides InstantTaskExecutorRule. That can be used from JUnit-based tests to replace the Architecture Components' standard Executor with one that runs everything on the current thread. This turns formerly asynchronous operations into synchronous ones, which streamlines testing. InstantTaskExecutorRule is good for testing LiveData, particularly when returned from Room.

Documentation

Knowledge

Samples

Versions