PatilShreyas / NotyKT

📒 NotyKT is a complete 💎Kotlin-stack (Backend + Android) 📱 application built to demonstrate the use of Modern development tools with best practices implementation🦸.
https://patilshreyas.github.io/NotyKT/
Apache License 2.0
1.69k stars 245 forks source link

[CI] Setup CI workflow for running Android-ComposeApp UI tests #556

Open PatilShreyas opened 1 year ago

PatilShreyas commented 1 year ago

Description

Currently, only unit tests are executed on push or pull_request events. It would be nice to execute UI tests (of compose app) module as well.

Criteria for workflow

Task steps

Once above criteria is met, run the following commands

./gradlew :app:composeapp:connectedCheck

Solution

For running emulator on CI, following action utility can be useful: https://github.com/ReactiveCircus/android-emulator-runner

krishnachaitanya0107 commented 1 year ago

Hi @PatilShreyas ,

I would like to try working on this issue . Could you please assign it to me .

Thanks

PatilShreyas commented 1 year ago

Thanks @krishnachaitanya0107 for showing interest in contributing to this. Sure, if you're interested, will assign this to you

krishnachaitanya0107 commented 1 year ago

Hi @PatilShreyas ,

It would be really helpful if you could clarify a few things for me if possible .

Thanks

PatilShreyas commented 1 year ago
  1. When command ./gradlew build is executed, tests are also executed.

  2. We need a separate job under build.yml which runs on macOS and dedicatedly executes UI tests.

krishnachaitanya0107 commented 1 year ago

Ah , that makes sense . Thanks for the quick reply , really appreciate it .