agentleFS
SentryKnown publishergetsentry/sentry-java/.claude/skills/test/SKILL.md

test

Skill1.4k starsChanged 7 months agoMITView on GitHub

Run tests for a specific SDK module. Use when asked to "run tests", "test module", "run unit tests", "run system tests", "run e2e tests", or test a specific class. Auto-detects unit vs system tests. Supports interactive mode.

98 other projects use a version of this.

Trending

Quiet this year.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the getsentry/sentry-java repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about getsentry/sentry-java

The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 18

Talked about on GitHub (18 times).

On GitHub · 18

13 more on GitHub

Used with

Projects with it also use develop, perf and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bamechoSkill

    develop

    开发实施阶段详细规则;进入开发实施时读取;包含执行流程、代码规范、一致性审计、方案包迁移

    Also in 6 projects that use this

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.

    Also in 6 projects that use this

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 8 projects that use this

  • BugRogerSkill

    project

    Project lifecycle management. Dispatches to Ada.

    Also in 6 projects that use this

  • vltingSkill

    scope

    Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.

    Also in 5 projects that use this

  • bitwize-music-studioSkill

    tutorial

    Provides interactive guided album creation for new users. Use when the user is new to the plugin or asks for a walkthrough of the album creation process.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run tests for a specific module.

    line 10
  2. Very specific:

    If $ARGUMENTS starts with interactive (e.g., /test interactive sentry ScopesTest), enable interactive mode.

    line 14
  3. Distinctive:

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

    line 27
  4. Distinctive:

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

    line 48
  5. Very specific:

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

    line 51
  6. Distinctive:

    Ensure the Python venv exists:

    line 67
  7. Distinctive:

    Run the system test:

    line 74

“Common” is measured: kept by at least 6 in 10 of the 80 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

SignalTest Type
Path contains sentry-samples/System test
Module name starts with sentry-samples-System test
Everything elseUnit test

Step 3a: Run Unit Tests

Determine the Gradle test task:

Module PatternTest Task
sentry-android-*testReleaseUnitTest
sentry-compose*testReleaseUnitTest
*-androidtestReleaseUnitTest
Everything elsetest

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.

  1. Ensure the Python venv exists:
test -d .venv || make setupPython
  1. Extract the sample module name. For file paths like sentry-samples/<sample-module>/src/..., the sample module is the directory name (e.g., sentry-samples-spring).
  2. Run the system test:
.venv/bin/python test/system-test-runner.py test --module <sample-module>

This starts the mock Sentry server, starts the sample app (Spring Boot/Tomcat/CLI), runs tests via ./gradlew :sentry-samples:<sample-module>:systemTest, and cleans up afterwards.

To run every system test instead of one module, use the Makefile targets — they also create the venv for you:

make systemTest             # all system tests (--all)
make systemTestInteractive  # pick the setups to run (--interactive)

Step 4: Report Results

Summarize the test outcome:

  • Total tests run, passed, failed, skipped
  • For failures: show the failing test name and the assertion/error message

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.