DEV Community

Cover image for Introduction to unit testing ViewModel with Kotlin Coroutine & Flow
Raksha for Canopas Software

Posted on

2 1

Introduction to unit testing ViewModel with Kotlin Coroutine & Flow

Learn how to write unit test of ViewModel which has kotlin coroutine.

In this post, we’re not going to cover any UI-related and business logic of networking calls.

We have created a Sealed class to manage the state of our main screen in a very simple way.

You can read full article: https://blog.canopas.com/introduction-to-unit-testing-viewmodels-with-kotlin-coroutine-367630e95831

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay