Skip to content

Add Android unit test collector example#33

Open
pda wants to merge 1 commit intomainfrom
pda/android-collector
Open

Add Android unit test collector example#33
pda wants to merge 1 commit intomainfrom
pda/android-collector

Conversation

@pda
Copy link
Member

@pda pda commented Feb 13, 2026

Adds an android/ example demonstrating the test-collector-android Gradle plugin (v0.3.0) for unit test collection.

How it works

Unlike other examples in this repo, the Android collector uses a Gradle plugin that hooks into the test lifecycle and uploads results directly — no bktec client is needed.

The example includes:

  • PassingTest — 3 passing assertions
  • FailingTest — 2 deliberate failures (fail() and wrong assertion)
  • SkippedTest — 2 tests with @Ignore
  • FlakyTest — 2 random-based tests

CI

  • Uses ghcr.io/cirruslabs/android-sdk:34 Docker image
  • No parallelism (no bktec splitting)
  • soft_fail: true like other examples

Build: https://buildkite.com/buildkite/test-engine-client-examples/builds/421
Android step ran successfully: 9 tests completed, 3 failed, 2 skipped ✅

Adds an Android example using the test-collector-android Gradle plugin
(v0.3.0) for unit test collection. Unlike other examples, this uses the
collector plugin directly rather than bktec, as the plugin hooks into
Gradle's test lifecycle and uploads results automatically.

Includes passing, failing, skipped, and flaky test examples.

Amp-Thread-ID: https://ampcode.com/threads/T-019c55d2-2d6b-70c8-9801-bf31335a2765
Co-authored-by: Amp <amp@ampcode.com>
@pda
Copy link
Member Author

pda commented Feb 13, 2026

Looks good:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant