This repository contains a simple Android project demonstrating the use of Jetpack Compose for building UI, Hilt for dependency injection, and CircleCI for continuous integration and testing. The project focuses on instrumented testing (UI testing) using Jetpack Compose Test APIs.
- Kotlin: 100% Kotlin codebase.
- Jetpack Compose: For declarative UI development.
- Hilt: For managing dependencies.
- Jetpack Compose Test APIs: For UI and instrumented testing.
- CircleCI: For CI/CD pipeline.
├── app/ # Main application module
│ ├── src/main/ # Source files for the app
│ ├── src/androidTest/ # Instrumentation (UI) tests
├── .circleci/ # CircleCI configuration
│ └── config.yml # CircleCI pipeline setup
└── build.gradle # Project-level Gradle file
-
Clone the repository:
git clone https://github.com/waffiqaziz/HiltTestActivity.git
-
Open the project in Android Studio.
-
Sync Gradle dependencies:
Go to File > Sync Project with Gradle Files.
-
Run the application:
Select a device/emulator and click on Run
▶️ . Run UI tests: -
Execute the instrumented tests with:
./gradlew connectedAndroidTest
This project includes a .circleci/config.yml
file for automating builds and tests. To use
CircleCI:
- Push the repository to GitHub or another supported VCS.
- Set up the project on CircleCI.
- Customize the
config.yml
file if needed. - Monitor builds and test results on the CircleCI dashboard.
Contributions are welcome! Please read this page.