test

test is a skill for Claude Code, Codex from getsentry/sentry-java. It costs 58 tokens per session (861 once invoked), scanned A, original, MIT.

A workflow for running tests in a Java SDK module, choosing between unit tests and system tests based on the module or file. Unit tests check a small piece of code; system tests check connected parts together.

In plain words
What is it for?
Use it to run unit tests, end-to-end tests, selected test classes, or interactive test selection for a sentry-java module.
Why use it?
It removes the need to remember different commands for module tests, sample applications, and specific test classes.

Skill for Claude CodeCodex

About the project

getsentry/sentry-java is a Java and Android software development kit for sending application errors, events, and diagnostic information to Sentry. It is used by developers working with Java, Android, Kotlin, and other JVM-based applications to monitor software behavior. The catalogue rules, skills, instructions, and setting support workflows around this SDK.

getsentry/sentry-java · 1,349 stars · on GitHub

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.

agentmods
npx agentmods add skills/getsentry/sentry-java/test
Any agent
npx skills add getsentry/sentry-java --skill test
Clone the repo
git clone --depth 1 https://github.com/getsentry/sentry-java

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 test

README.md
[![agentmods](https://agentmods.dev/badge/skills/getsentry/sentry-java/test.svg)](https://agentmods.dev/skills/getsentry/sentry-java/test)
Your own site
<a href="https://agentmods.dev/skills/getsentry/sentry-java/test"><img src="https://agentmods.dev/badge/skills/getsentry/sentry-java/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00058 $0.00861
Opus 5 $0.00029 $0.00430
Sonnet 5 $0.00012 $0.00172
Haiku 4.5 $0.00006 $0.00086

Measured yesterday against content hash 8b66210014eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test 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 yesterday.

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.

.claude/skills/test/SKILL.md · 94 lines

How it starts

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

Run Tests

Run tests for a specific module. Auto-detects whether to run unit tests or system tests.

Step 0: Check for Interactive Mode

If $ARGUMENTS starts with interactive (e.g., /test interactive sentry ScopesTest), enable interactive mode. Strip the interactive keyword from the arguments before proceeding.

In interactive mode, use AskUserQuestion at decision points as described in the steps below.

Step 1: Parse the Argument

The argument can be either:

  • A file path (e.g., @sentry/src/test/java/io/sentry/ScopesTest.kt)
  • A module name (e.g., sentry-android-core, sentry-samples-spring-boot-4)
  • A module name + test filter (e.g., sentry ScopesTest)

Extract the module name and optional test class filter from the argument.

Interactive mode: If the test filter is ambiguous (e.g., matches multiple test classes across modules), use AskUserQuestion to let the user pick which test class(es) to run.

Step 2: Detect Test Type

Signal Test Type
Path contains sentry-samples/ System test
Module name starts with sentry-samples- System test
Everything else Unit test

Step 3a: Run Unit Tests

Determine the Gradle test task:

Module Pattern Test Task
sentry-android-* testReleaseUnitTest
sentry-compose* testReleaseUnitTest
*-android testReleaseUnitTest
Everything else test

Interactive mode: Before running, read the test class file and use AskUserQuestion to ask:

  • "Run all tests in this class, or a specific method?" — list the test method names as options.

If the user picks a specific method, use --tests="*ClassName.methodName" as the filter.

With a test class filter:

./gradlew ':<module>:<task>' --tests="*<filter>*" --info

Without a filter:

./gradlew ':<module>:<task>' --info

Step 3b: Run System Tests

System tests require the Python-based test runner which manages a mock Sentry server and sample app lifecycle.

Read the full file on GitHub · 94 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. yesterday First seen · 94 lines · 0 tokens per session scan A 8b66210014eb

Subscribe to this mod's changes

test is a skill published in the GitHub repository getsentry/sentry-java (1,349 stars, last pushed today), licensed MIT. It adds 58 tokens to every session and 861 once invoked, about $0.0003 per session on Opus 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-09-03.

Related

Other skills, from other repositories

test-flutter

Flutter App のテスト実行・静的解析・フォーマット・テスト記述ガイド.

K9i-0/ccpocket · 26 tokens

verify-work

Verify feature, bug, UI, API, mobile, security, or deployment work against acceptance criteria.

HoangNguyen0403/agent-skills-standard · 23 tokens

ios-testing

Testing patterns for Swift and SwiftUI apps.

TalissonVitorino/kmp-ios-skills · 69 tokens

mobile-testing

Android and JVM testing - JUnit5, MockK, Turbine for Flow, and Compose UI testing for unit, integration, and UI tests; also applies to KMP commonTest running on the JVM/Android target. For iOS/Swift tests (XCTest, Swift Testing, XCUITest) use ios-testing. For TDD methodology and the three-tier test model (fake-first…

TalissonVitorino/kmp-ios-skills · 102 tokens

android-kotlin-testing

Android testing patterns — ViewModel unit tests with Turbine, Compose UI semantics, Hilt TestInstallIn fakes, coroutine test dispatchers, and release quality gates. Use when writing tests, setting up CI, mocking repositories, or asking "how to test ViewModel", "Compose UI test", "Turbine StateFlow".

haidrrrry/compose-kotlin-agent-skills · 72 tokens

flutter-testing

Flutter + NestJS 多区域项目测试规范 — Flutter 单元测试(Notifier/Provider + ProviderContainer override)、widget 测试、golden 测试、★ flavor 条件编译测试(cn 不含 Firebase / overseas 不含 JPush 的静态与运行时验证)、多租户隔离测试、AI 扣费 refund 测试、NestJS service 单测(mock Prisma)、e2e(supertest + 测试库)、mocktail/jest mock 约定、覆盖率门禁。.

lh17708357536-gif/flutter-cn-overseas-app-skills · 114 tokens