Examples & Sample Applications
This page documents the sample applications included in the repository under samples/, detailing test coverage, target setup, execution commands, and recording demos.
Sample Applications Matrix
| Sample Name | Project Type | Kotlin Version | Compose Multiplatform | Supported Targets |
|---|---|---|---|---|
multiplatform-showcase |
Multi-Screen Component Showcase | 2.3.21 | 1.10.1 | Desktop, Wasm, Android, iOS |
cmp-latest |
Full-Stack Storefront App | 2.4.0 | 1.11.0+ | Desktop, Wasm, Android, iOS |
composables-sample |
Third-Party Design System | 2.4.0 | 1.11.0+ | Desktop, Wasm, Android, iOS |
standalone-android |
Non-KMP Android App | 2.0.21 | N/A (Android Jetpack) | Android |
1. multiplatform-showcase
This sample demonstrates how to use Parikshan to test different UI components and their interactions from the Compose Material library.
What This Sample Demonstrates
- Material UI Component Testing: Verifies component rendering and user interactions for buttons, text inputs, sliders, date & time pickers, dropdown menus, bottom sheets, radio buttons, checkboxes, drag & drop elements, vertical & horizontal scrolling views, pull-to-refresh indicators, navigation flows, accessibility semantics, and duplicate testTag selectors.
Execution Commands
Video & Visual Demos
| Desktop & Web (WasmJs) | Android | iOS |
|---|---|---|
|
2. cmp-latest (Full-Stack Storefront App)
A real-world full-stack Compose Multiplatform application (StorefrontApp) communicating with an embedded Ktor backend server (:server).
What This Sample Demonstrates
- Server Mocking & API Setup: Demonstrates how to mock Ktor HTTP endpoints (
GET /api/products,POST /api/login,POST /api/orders) by registering a custom client with KtorMockEnginein@BeforeTestand resetting the service registry in@AfterTest.
Execution Commands
# add --targets=jvm,wasm,android if on Intel based Mac
./gradlew -p samples/cmp-latest :app:shared:e2eTest
Visual Demos
| Desktop & Web (WasmJs) | Android | iOS |
|---|---|---|
|
|
|
3. composables-sample
Generated using the Composables CLI. Demonstrates automated UI testing against custom design systems and third-party component libraries.
What This Sample Demonstrates
- Custom design system UI components.
- Target-independent element selection and input simulation.
Execution Commands
# add --targets=jvm,wasm,android if on Intel based Mac
./gradlew -p samples/composables-sample :shared:e2eTest
Visual Demos
| Desktop & Web (WasmJs) | Android | iOS |
|---|---|---|
|
|
|
4. standalone-android
Demonstrates integrating Parikshan into a standalone, single-module Android project without Kotlin Multiplatform setup.
Execution Commands
./gradlew -p samples/standalone-android :app:e2eAndroidTest
# OR
# ./gradlew -p samples/standalone-android :app:e2eTest
Visual Demo