POS Unit Tests

SkillDatabases & data

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.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the POS Unit Tests skill

What this skill tells your AI

The instructions your AI receives, as published by woocommerce/woocommerce-android in .agents/skills/pos-tests/SKILL.md and read by ahel’s review.

@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"

Signals

GitHub stars
319
Forks
146
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
pos-tests
Source
github.com/woocommerce/woocommerce-android