Espresso and Compose UI Tests with Coding Agents
One UI testing approach for an app that mixes XML views and Compose: agents write Espresso and Compose tests that stay deterministic in CI
- Format
- Workshop
- Duration
- 1 day
- Delivery
- Live online / On-site
- Group size
- 4–12 people
- Level
- Intermediate
- Workshops & trainings since 2014
- German or English
- Agenda tailored to your team
- Non-binding request
Your Android app mixes XML views and Jetpack Compose, and your tests mix two styles that agents keep confusing – with sleeps added whenever timing gets tricky. After this workshop a written testing guide tells agents when to use Espresso and when Compose tests, Hilt test modules or fakes make tests independent of the backend and the suite runs reliably on emulators or Gradle Managed Devices. Claude Code or Gemini writes tests for real screens from your scenarios, and pairs review them. Synchronisation problems are fixed properly instead of hidden.
Who the Android UI testing workshop is for
Android developers and QA engineers working in apps that mix XML views and Jetpack Compose and need a consistent UI testing approach.
What you'll walk away with
- Write a testing guide that tells agents when to use Espresso and when Compose tests
- Add semantics and test tags without affecting accessibility
- Isolate tests with Hilt test modules or fakes
- Fix synchronisation and idling problems systematically
- Run the suite reliably in CI
When the Android UI testing workshop pays off
-
Half of an app is migrated to Compose, and UI tests for those screens do not exist yet.
-
Espresso tests fail randomly in CI because of network calls and missing idling resources.
-
A team wants agents to write UI tests for every new screen but keeps rejecting tests that use Thread.sleep.
Is the Android UI testing workshop right for your team?
Pick proposed dates and tell us briefly about your team – non-binding, reply within one business day.
What the Android UI testing workshop covers
-
Module 1: Testing guide
Patterns for View-based and Compose screens, written as rules for the agent and reviewed by the team.
-
Module 2: Semantics and tags
The agent adds test tags and semantics, and we check that TalkBack output stays correct.
-
Module 3: Dependency isolation
Hilt test modules, fake data sources and network stubs that make tests deterministic.
-
Module 4: Writing tests
Participants describe scenarios; the agent writes tests; pairs review and run them.
-
Module 5: Synchronisation
Idling resources, waitUntil and coroutine test dispatchers, and the shortcuts agents must not take.
-
Module 6: CI
Emulators or Gradle Managed Devices in CI, sharding and reports.
Prerequisites
- Android development experience with Kotlin
- An app with View and/or Compose screens
- Claude Code or Gemini in Android Studio
Materials you keep
- A UI testing guide for your app
- Tests for key screens
- A CI configuration for UI tests
- A short list of synchronisation anti-patterns your agent must avoid
Tools covered
- Espresso
- Compose UI Test
- Claude Code
- Gemini in Android Studio
Rather have it done than learn it? Our AI Code Engineers also handle CI/CD, signing and submission as a service: Google Play submission service
Why train with us
- We have offered workshops and trainings since 2014. The topics have moved with the technology – today our focus is agentic coding and prompt engineering for app teams.
- Hands-on with realistic examples from app projects – or with your own code, prompts and store listings on request.
- Live online, on-site or hybrid, in German or English – your trainers are AI Code Engineers of jocapps GmbH.
- jocapps GmbH is certified to ISO/IEC 27001 (information security) and ISO 9001 (quality).
Request dates for the Android UI testing workshop
Pick one or more dates that suit you. We confirm within one business day and send an agenda tailored to your team. Non-binding.
How it works
-
Request with your preferred dates
Pick the proposed dates that suit you, or name your own, and send the non-binding request.
-
Short call
We get back to you within one business day and talk briefly about your goals, prior knowledge and your team's tools.
-
Agenda for your team
You receive an agenda tailored to your team, stack and examples, and we confirm the date.
-
Workshop and materials
Your team works hands-on with AI Code Engineers of jocapps GmbH and keeps all materials.
Questions about the Android UI testing workshop
Should we migrate Espresso tests to Compose tests?
Only when the screen is migrated. Mixed apps need both, and the guide helps agents choose correctly.
Do agents handle flaky timing well?
Not by default. They like adding sleeps. Our rules forbid that and point them to proper synchronisation.
Can we run tests on real devices?
Yes, through device clouds or connected devices. We cover the setup and when it is worth it compared with emulators.
Is the course held online or on-site, and in which language?
Both work: live online via video call or on-site at your office. Remote sessions work anywhere; on-site we come to you across Germany, Austria and Switzerland, other locations on request. The course runs in German or English – whichever your team works in; mixed teams are fine.
Can you adapt the course to our codebase and tools?
Yes. In the agenda call we look at your stack, your tools and your current release process. We then swap examples and exercises for tasks from your own repository where your security rules allow it, and weight the modules by your goals.
Independent training offer by jocapps GmbH, not affiliated with or endorsed by Apple, Google, Anthropic, OpenAI or any other company mentioned; all trademarks belong to their owners. Tools and store policies change quickly – the course always works with the current state.