POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification).

GPL-2.0Auto-check: notesTesting & QA

Install Pos Tests

skills CLI
$ npx skills add woocommerce/woocommerce-android --skill pos-tests -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install woocommerce/woocommerce-android pos-tests --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/woocommerce/woocommerce-android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pos-tests .claude/skills/pos-tests && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pos-tests
GitHub stars
319
Token cost
~216 tokens
SKILL.md length
63 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
GPL-2.0

At a glance

POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification).

  • Works in 5 steps: Read the class under test to understand… → Find existing tests in the same package… → Test location: mirror main source path… → …
  • Reviewing unit tests for POS (WooPos) code
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Unit testing

What it does

Pos Tests is an agent skill from woocommerce/woocommerce-android. POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification). Use when writing, editing, exploring, debugging, or reviewing unit tests for POS (WooPos) code. NOT for main store app tests — use the store-tests skill instead.

Its SKILL.md is about 220 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Unit testing, Android development and Event-driven systems. It works with WooCommerce and Kotlin. The repository describes itself as: WooCommerce Android app. The licence is GPL-2.0.

When your agent uses it

  • Reviewing unit tests for POS (WooPos) code
  • Tasks that involve Unit testing
  • Tasks that involve Android development

Example prompts

  • “/pos-tests”

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, Write, Edit, Grep, Glob

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Read the class under test to understand its dependencies and state management
  2. Find existing tests in the same package for patterns to follow
  3. Test location: mirror main source path under src/test/ within ui/woopos/
  4. Write the test class following the POS conventions in the testing doc above
  5. Run the test: ./gradlew :WooCommerce:testWasabiDebugUnitTest --tests "*.ClassName"

What it can do on your machine

Read from SKILL.md and the folder at commit 0fb14b0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Write
    • Edit
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pos Tests loads about 216 tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 63 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~216

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Write, Edit, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from woocommerce/woocommerce-android at commit 0fb14b0, republished under its GPL-2.0 licence (© woocommerce). 63 words, ~216 tokens.

Download SKILL.mdSave it as .claude/skills/pos-tests/SKILL.md (or your agent's skills folder).
name
pos-tests
description
POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification). Use when writing, editing, exploring, debugging, or reviewing unit tests for POS (WooPos*) code. NOT for main store app tests — use the `store-tests` skill instead.
allowed-tools
Bash, Read, Write, Edit, Grep, Glob
user-invocable
true

POS Unit Tests

@docs/pos-testing.md

Workflow

  1. Read the class under test to understand its dependencies and state management
  2. Find existing tests in the same package for patterns to follow
  3. Test location: mirror main source path under src/test/ within ui/woopos/
  4. Write the test class following the POS conventions in the testing doc above
  5. Run the test: ./gradlew :WooCommerce:testWasabiDebugUnitTest --tests "*.ClassName"

© woocommerce, GPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/pos-tests of woocommerce/woocommerce-android.

Open the folder on GitHubat commit 0fb14b0

Compare with similar skills

Pos Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pos Tests compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pos Tests this skillwoocommerce/woocommerce-android319—~216Automated safety check: NotesGPL-2.0
Quality Test Pilotnekomangaorg/Neko2.8k—~1.1kAutomated safety check: PassApache-2.0
Mocking With Mockitoskydoves/android-testing-skills333—~4.5kAutomated safety check: PassApache-2.0
Mocking With Mockkskydoves/android-testing-skills333—~4.1kAutomated safety check: PassApache-2.0
Improve Code Coveragealexvanyo/composelife267—~1.1kAutomated safety check: PassApache-2.0
Mps TestsJetBrains/MPS1.7k—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Quality Test Pilot

    nekomangaorg/Neko

    Writes high-quality unit tests for Kotlin Android codebases to increase meaningful test coverage.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Mocking With Mockito

    skydoves/android-testing-skills

    A skill your agent uses to wire Mockito (the dominant Android mocking framework, exclusively used by androidx itself) into a JVM unit-test suite.

    333 GitHub stars~4.5k tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Mocking With Mockk

    skydoves/android-testing-skills

    A skill your agent uses to wire MockK (the Kotlin-first mocking framework) into a JVM unit-test suite, especially when coroutines, singleton/object mocking, or constructor mocking dominate.

    333 GitHub stars~4.1k tokensUpdated 4 mo ago
    Testing & QAAuto-check passed
  • Improve Code Coverage

    alexvanyo/composelife

    Helps increment code coverage in this Kotlin Multiplatform project.

    267 GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed
  • Mps Tests

    JetBrains/MPS

    Official

    A skill your agent uses when writing or modifying tests inside MPS @tests models — NodesTestCase (typesystem, constraints, scopes, dataflow, generator output), EditorTestCase (intentions, actions…

    1.7k GitHub stars~2.9k tokensUpdated yesterday
    MobileAuto-check passed
  • Kotest

    jvm-skills/jvm-skills

    Write a new Kotlin test, or modernize an existing one, using Kotest matchers and idiomatic Kotlin test style — backticked names, apply/assertSoftly blocks, and existing object mothers and helpers.

    140 GitHub stars~2.6k tokensUpdated 1 mo ago
    MobileAuto-check passed

More from woocommerce/woocommerce-android

All 8 skills in this repo
  • PR

    woocommerce/woocommerce-android

    Create a pull request following project conventions. An agent skill from woocommerce/woocommerce-android.

    319 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check: notes
  • PR Feedback

    woocommerce/woocommerce-android

    Address PR reviewer feedback by evaluating comments, proposing fixes, and executing after user approval.

    319 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check: notes
  • UI Review

    woocommerce/woocommerce-android

    Generate screenshot coverage for screen-level Compose previews from the current diff or a specific target, check required visual and data variations, and produce a compact visual report

    319 GitHub stars~3.1k tokensUpdated yesterday
    Auto-check passed
  • Review

    woocommerce/woocommerce-android

    Review code changes against project architecture, style, and conventions

    319 GitHub stars~600 tokensUpdated yesterday
    Auto-check: notes
  • Verify On Device

    woocommerce/woocommerce-android

    Build, install, and visually verify the app on an Android emulator or device.

    319 GitHub stars~10k tokensUpdated yesterday
    Auto-check: notes
  • Woo AI Smoke

    woocommerce/woocommerce-android

    Run the Android AI Assistant headless smoke regression harness without launching UI.

    319 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed

Questions about Pos Tests

What does Pos Tests do?

POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification). Pos Tests is an agent skill from woocommerce/woocommerce-android. POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification).

When should I use Pos Tests?

Pos Tests fits situations like: reviewing unit tests for POS (WooPos) code; tasks that involve Unit testing; tasks that involve Android development.

How do I install Pos Tests in Claude Code?

Run `npx skills add woocommerce/woocommerce-android --skill pos-tests -a claude-code`. Or copy the skill folder (.agents/skills/pos-tests in woocommerce/woocommerce-android) into .claude/skills/pos-tests in your project. Claude Code loads it when a task matches its description.

How do I install Pos Tests in Codex?

Run `npx skills add woocommerce/woocommerce-android --skill pos-tests -a codex`. Or copy the skill folder (.agents/skills/pos-tests in woocommerce/woocommerce-android) into .agents/skills/pos-tests in your project. Codex loads it when a task matches its description.

Can I use Pos Tests in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add woocommerce/woocommerce-android --skill pos-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pos-tests, .gemini/skills/pos-tests, .github/skills/pos-tests and .opencode/skills/pos-tests in your project.

What does Pos Tests need to run?

SKILL.md names no scripts, command-line tools or credentials: Pos Tests is instructions for the agent only. Its frontmatter pre-approves these tools: Bash, Read, Write, Edit, Grep, Glob.

Does Pos Tests access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pos Tests safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Pos Tests use?

Pos Tests is published under the GPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pos Tests use?

About 216 tokens (SKILL.md is roughly 864 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pos Tests?

Skills that share tags, products or a category with Pos Tests: Quality Test Pilot (nekomangaorg/Neko, 2.8k stars), Mocking With Mockito (skydoves/android-testing-skills, 333 stars), Mocking With Mockk (skydoves/android-testing-skills, 333 stars) and Improve Code Coverage (alexvanyo/composelife, 267 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pos Tests?

woocommerce (a GitHub organization) maintains it in woocommerce/woocommerce-android, which has 319 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 7, 2026.

Source: woocommerce/woocommerce-android on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.