Open in app
Home
Notifications
Lists
Stories

Write
Roman Tikonov
Roman Tikonov

Home

Dec 12, 2021

Disabling animations when running Android instrumented tests

A reliable and extensible approach — Would you like to make your Android instrumented tests, e.g. espresso tests, less flaky and dramatically faster to execute? Then read on. I will show a reliable and extensible approach to automatically disabling animations on test devices before running instrumented tests and then restoring device animation settings after the test…

Android

3 min read

Disabling animations when running Android instrumented tests
Disabling animations when running Android instrumented tests

Mar 8, 2020

Unit testing kotlin coroutines on Android with JUnit 5

JUnit 5 extensions vs JUnit 4 rules — If you unit test coroutines in your Android app, you have already seen this exception: Exception in thread "main @coroutine#1" java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used For those of you who use or plan to use JUnit…

Android

2 min read

Unit testing kotlin coroutines on Android with JUnit 5
Unit testing kotlin coroutines on Android with JUnit 5
Roman Tikonov

Roman Tikonov

Self-Employed Senior Android Dev | https://romantikonov.com/

Following
  • David Vávra

    David Vávra

  • Chet Haase

    Chet Haase

  • Maxi Rosson

    Maxi Rosson

  • Ali Muzaffar

    Ali Muzaffar

  • Ivano

    Ivano

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable