Compose + Testing

Overview of UI Testing in Compose


Presentation by Michael Bailey on Droidcon London 2021. Overview of UI Testing in Jetpack Compose.

https://www.droidcon.com/2021/11/23/overview-of-ui-testing-in-compose/


How to test Jetpack Compose

Article – introduction into testing simple Composable in context of Android with jUnit4 composeTestRule

https://www.droidcon.com/2021/11/12/how-to-test-jetpack-compose/



Kotlin Mutliplatform

Testing on Kotlin Multiplatform Mobile and a Strategy to Speed Up Development Time

Aleksander shares his strategy for creating tests suite in Kotlin Multiplatform projects

https://akjaw.com/testing-on-kotlin-multiplatform-and-strategy-to-speed-up-development/


Understanding and Configuring your Kotlin Multiplatform Mobile Test Suite

Overview for test suite in KMM projects by Touchlab

https://touchlab.co/understanding-and-configuring-your-kmm-test-suite/


Android

Automatic screenshot testing for all your Compose @Previews


Screenshot testing with Compose @Previews by GDE David Vávra
https://proandroiddev.com/automatic-screenshot-testing-for-all-your-compose-previews-6add202fecc7


Using Ktor Client MockEngine for Integration and UI Tests

Tutorial by Aleksander Jaworski  about mocking Ktor Client for tests on Android

https://akjaw.com/using-ktor-client-mock-engine-for-integration-and-ui-tests/


JVM

Dynamic Testing in JUnit 5; a Practical Guide

Guide to generate test cases with jUnit5.
https://medium.com/@BillyKorando/dynamic-testing-in-junit-5-a-practical-guide-a57e3ceaa240


First Mocked Unit Test Generated by DDTJ - Building DDTJ Day 9

Part of building DDTJ

It’s often very difficult to create a unit test for a complex bug with complex mocking. The goal of DDT is: if you can reproduce it you can unit test it. It provides you with the full set of tools to generate a fully isolated unit test. This, in-turn enables high-quality code, reducing the programming feedback loop.

https://dev.to/codenameone/first-mocked-unit-test-generated-by-ddtj-building-ddtj-day-9-36lo


Random

Why Testing After Is a Bad Practice

AKA why you should consider TDD:

https://dev.to/mbarzeev/why-testing-after-is-a-bad-practice-2pj5

Android Emulator for Automotive available!

https://developer.android.com/training/cars/testing#test-automotive-os