configuring-test-dependencies

configuring-test-dependencies is a skill for Claude Code, Codex from skydoves/android-testing-skills. It costs 166 tokens per session (3,796 once invoked), scanned A, original, Apache-2.0.

A guide to the Gradle libraries needed for Jetpack Compose UI tests, including tests that run on a device and host-side tests that run on the computer. Gradle is Android's build and dependency system.

In plain words
What is it for?
Use it when Compose test imports are unresolved, test activities fail to launch, Robolectric tests need setup, or accessibility checks must be enabled.
Why use it?
It prevents common setup failures caused by putting a library in the wrong test source set or leaving out the test manifest needed to start Compose tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when Compose test imports are unresolved, test activities fail to launch, Robolectric tests need setup, or accessibility checks must be enabled.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skydoves/android-testing-skills/configuring-test-dependencies
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add skydoves/android-testing-skills --skill configuring-test-dependencies
Clone the repo
git clone --depth 1 https://github.com/skydoves/android-testing-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for configuring-test-dependencies

README.md
[![agentmods](https://agentmods.dev/badge/skills/skydoves/android-testing-skills/configuring-test-dependencies/github.svg)](https://agentmods.dev/skills/skydoves/android-testing-skills/configuring-test-dependencies)
Your own site
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/configuring-test-dependencies"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/configuring-test-dependencies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for configuring-test-dependencies

Your own site · 80×15
<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/configuring-test-dependencies"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/configuring-test-dependencies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,796 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00166 $0.03796
Opus 5.5 $0.00066 $0.01518
Sonnet 5.5 $0.00033 $0.00759
Haiku 4.5 $0.00017 $0.00380

Measured 3mo ago against content hash f944ef164875, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

configuring-test-dependencies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

compose/setup/configuring-test-dependencies/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Configuring Test Dependencies — Get the Gradle Matrix Right

Compose UI tests fail at the dependency layer in three predictable ways: the JUnit4 surface is on the wrong source set, the ui-test-manifest artifact is missing or on the wrong configuration, or the host-test trio is incomplete. This skill encodes the exact matrix and the lint warning that polices it. Subsequent skills (choosing-test-rule-vs-runtest/SKILL.md, setting-up-host-vs-device-tests/SKILL.md) assume the dependencies are correct.

When to use this skill

  • The user reports java.lang.RuntimeException: Could not launch activity within 45 seconds. Examined activities: ... androidx.activity.ComponentActivity or ActivityNotFoundException.
  • The IDE flags createComposeRule as unresolved or import androidx.compose.ui.test.junit4.createComposeRule as red.
  • Lint surfaces TestManifestGradleConfiguration (severity WARNING) on a build.gradle.kts line.
  • The user wants to add Robolectric / host (JVM) tests for Compose and asks which artifacts to depend on.
  • The user wants to opt into enableAccessibilityChecks(...) and is unsure which artifact owns it.

When NOT to use this skill

  • Dependencies are already correct and the user is choosing between createComposeRule() and runComposeUiTest { } — use ./choosing-test-rule-vs-runtest/SKILL.md.
  • Dependencies compile but the test runs in the wrong source set (test/ vs androidTest/) — use ./setting-up-host-vs-device-tests/SKILL.md.
  • The test compiles and runs but is flaky/timing-out — start with ../../synchronization/synchronizing-with-idle/SKILL.md.

Prerequisites

  • Android Gradle Plugin with the com.android.application or com.android.library plugin applied.
  • A Compose-enabled module (the org.jetbrains.kotlin.plugin.compose plugin or buildFeatures.compose = true).
  • A JUnit4 dependency on the test classpath (Compose's ui-test-junit4 artifact still uses JUnit4; JUnit5 requires a third-party Vintage engine bridge and is out of scope).

Read the full file on GitHub · 257 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 257 lines · 166 tokens per session scan A f944ef164875

Subscribe to this mod's changes

configuring-test-dependencies is a skill published in the GitHub repository skydoves/android-testing-skills (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 166 tokens to every session and 3,796 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

configuring-test-dependencies compared with skills from other repositories

configuring-test-dependencies next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
configuring-test-dependenciesskydoves/android-testing-skillsSkill3516mo agoApache-2.0A166Claude Code, Codex
android-ui-journey-testingsickn33/agentic-awesome-skillsSkill51ktodayMITA27Claude Code
android_ui_verificationsickn33/agentic-awesome-skillsSkill51ktodayMITA22Claude Code
solopi-aialipay/SoloPiSkill6.8ktodayApache-2.0A82Codex
public-transitchromium/chromiumSkill25ktodayBSD-3-ClauseA53Claude Code, Codex
eas-simulatorexpo/skillsSkill4.3ktodayMITA251Claude Code, Codex
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code