Sample repo that demonstrates various options for testing Jetpack Compose applications.

Overview

Composing With Confidence

This is the sample repository for the Composing With Confidence presentation from Droidcon NYC in 2022. If you run the sample app, you won't see much other than a basic login form that requires filling out a username and password before navigating into a basic home screen.

The main benefit of this repo is to run and explore different testing options in Jetpack Compose. The main points of interest are the following:

  1. The PrimaryButtonTest file shows how we can test an individual component by itself.
  2. The PrimaryButtonPaparazziTest shows how we can use the Paparazzi library to screenshot test on the JVM.
  3. The MainActivityTest shows how we can write a full integration test to verify a screen's behavior including navigation.

If you'd like to view the slides from this presentation, you can find them in the presentation folder.

You might also like...
Super Heroes Kata implemented using Jetpack Compose and Screenshot Testing.
Super Heroes Kata implemented using Jetpack Compose and Screenshot Testing.

KataSuperHeroes with Jetpack Compose We are here to learn about Jetpack Compose. We are going to use Jetpack Compose Testing Tools to interact with th

Jetpack Compose performance testing

Jetpack Compose performance testing ( 🚧 WIP) πŸ›‘ Disclaimer This project is not official, and the information is provided as-is. All test cases descri

Jetpack Compose performance testing

Jetpack Compose performance testing

An app showing all details for various Lenovo Thinkpad models. Made to try out Jepack Compose for Android.

ThinkRchive An app showing all details for various Lenovo Thinkpad models. Made to try out Jepack Compose for Android. WORK IN PROGRESS GOALS: Use Ret

An app showing all details for various Lenovo Thinkpad models. Made to try out Jepack Compose for Android.
An app showing all details for various Lenovo Thinkpad models. Made to try out Jepack Compose for Android.

An app showing all details for various Lenovo Thinkpad models. Made to try out Jepack Compose for Android. This repo is a Mutliplatform version of the initial Thinkrchive which was Android-centric

Navigation-Compose - A sample to showcase Kotlin, MVVM, Hilt, Coroutines, StateFlow, Jetpack compose

Navigation-Compose A sample to showcase Kotlin, MVVM, Hilt, Coroutines, StateFlo

Examples of ParallaxView and ParallaxScrollEfect are in the repo. You can find the necessary titles and outputs in the continuation of the Readme file. πŸͺž
Examples of ParallaxView and ParallaxScrollEfect are in the repo. You can find the necessary titles and outputs in the continuation of the Readme file. πŸͺž

Parallax Examples : Examples of ParallaxView and ParallaxScrollEfect are in the repo. You can find the necessary titles and outputs in the continuatio

Pinocchio is a group of libraries for various common UI components. It could contain Composable, View, and everything related to UI.
Pinocchio is a group of libraries for various common UI components. It could contain Composable, View, and everything related to UI.

Pinocchio Pinocchio is a group of libraries for various common UI components. It could contain Composable, View, and everything related to UI. All UI

Decathlon Design System UI components for Compose applications
Decathlon Design System UI components for Compose applications

Vitamin Compose Decathlon Design System libraries for android applications Website Compose Decathlon Design System is based on Material Design compose

Comments
  • Adding sample app for testing.

    Adding sample app for testing.

    Summary

    • Includes a few test cases as well to verify behavior.

    How It Was Tested

    • UI tests.

    Screenshot/Gif

    https://user-images.githubusercontent.com/9515997/187336996-fddbee9d-eb53-402a-95aa-58495ce23639.mp4

    enhancement 
    opened by AdamMc331 1
Owner
Adam McNeilly
Android developer at Twitch, and author of @androidessence. Also an organizer for @GrizzHacks.
Adam McNeilly
πŸ“± WhatsApp clone project demonstrates modern Android development built with Jetpack Compose and Stream Chat SDK for Compose.

This is a WhatsApp clone app built with Jetpack Compose and Stream Chat SDK for Compose. The purpose of this repository is to demonstrate below: Imple

Stream 689 Dec 25, 2022
An android app that demonstrates Snapchat's Creative kit integration with Jetpack compose

Snap Creative kit Sample An android app that demonstrates Snapchat's creative kit integration with Jetpack compose ?? Requirements To try out this sam

Dishant Gandhi 1 Oct 28, 2021
PapriCoin demonstrates Jetpack Compose usage to build modern app based on Clean Architecture and newest Tech-Stack

PapriCoin demonstrates Jetpack Compose usage to build modern app based on Clean Architecture and newest Tech-Stack. Repository also has loca

Malik Mukhametzyanov 15 Nov 9, 2022
Jetpack Compose based project, used to stress-testing compose features / integrations and explore non-trivial functionality

Project containing Jetpack Compose samples For pagination & network images it uses CATAAS. Known issues Navigation-Compose Issue with fast tapping on

Denis Rudenko 59 Dec 14, 2022
This repo contains components built with Jetpack Compose for the Microsoft Surface Duo.

Surface Duo Jetpack Compose SDK This repo contains components built with Jetpack Compose for the Microsoft Surface Duo and other large screen and fold

Microsoft 53 Dec 9, 2022
This repo is to demonstrate the jetpack compose 's canvas api's usage and creating an icon pack using the basic functions.

Jetpack Compose Canvas API Demo App We all know that Jetpack Compose has now reached the 1.0.0 release milestone. This is a huge change we can say for

vikas kumar 32 Dec 15, 2022
Foldable-chat-android - Foldable chat Android demonstrates adaptive and responsive UIs with Jetpack WindowManager API

Foldable Chat Android A foldable chat Android demonstrates adaptive and responsi

Stream 31 Oct 29, 2022
Demonstrates using Compose with pre-releases of KotlinCompiler and ComposeCompiler

Using Compose Compiler to support different versions of Kotlin For the purposes of testing, development, or just living on the edge... some people wan

null 26 Aug 19, 2022
πŸš€πŸ“’πŸ“ Indicators for Horizontal or Vertical Pager with different orientation, color, size options and optional touch feature.

Compose Pager Indicator Indicators for Horizontal or Vertical pager with different orientation, color, size options and optional touch feature. indica

Smart Tool Factory 5 Oct 7, 2022
πŸš€πŸŒ†πŸ™ Display differences or animate progress between 2 images or Composables with overlay and customization options, zoom, pan gestures, and progress to observe properties for animating before-after progress

Compose Before-After Composables to display Images, or Composables as before and after composables to display differences or animate progress between

Smart Tool Factory 56 Dec 22, 2022