Greenstand / Greenstand/treetracker-android

Add Android instrumentation tests for critical UI flows

Open
#1,243 2 comments 0 reactions 1 assignee Claimed by @marsof02 View on GitHub
2.3 chore tech-debt triage
Dominant language
Kotlin
Stars
101
Forks
116
PR merge metrics
No merged PRs in 30d

Description

## Problem

The `androidTest/` directory is empty — there are zero Android instrumentation tests. All existing tests are unit tests running on JVM (with Robolectric for some). This means there is no end-to-end testing of actual UI behavior on a real Android runtime.

## Location

- `app/src/androidTest/` — empty

## Suggested Fix

Add instrumentation tests for the most critical user flows:
1. **Login/signup flow** — user can create account and sign in
2. **Tree capture flow** — user can capture a tree photo and save it
3. **Sync flow** — trees upload successfully when connectivity is available
4. **Dashboard** — correct tree counts and sync status display

Use Compose testing APIs (`createComposeRule`, `onNodeWithText`, etc.) for UI assertions.

## Effort
High

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.