I am working on an Android project and also implementing CI/CD for the same. I have JUnit and Android Espresso with unitTest and androidTest packages.
I am able to perform unitTest through Bigbucket CI/CD with an example script but how i should perform it? Please suggest.
Using this script step 4 is getting failed
image: androidsdk/android-30
pipelines:
default:
- parallel:
- step:
name: Android Debug Application
caches:
- gradle
script:
- ./gradlew assembleDebug
artifacts:
- app/build/outputs/**
- step:
name: Lint
caches:
- gradle
script:
- ./gradlew lint
artifacts:
- app/build/reports/**
- step:
name: Unit Test
caches:
- gradle
script:
- ./gradlew :app:testProductionDebugUnitTest
artifacts:
- app/build/reports/**
- step:
name: UI Test
caches:
- gradle
script:
- ./gradlew :app:connectedProductionDebugAndroidTest
artifacts:
- app/build/reports/**