Skip to main content

pos-tests

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.

Informações da origem

Repositório
woocommerce/woocommerce-android
Última atividade na origem
10 de abril de 2026 às 13:39
Idioma detectado do SKILL.md
inglês
Estrelas
319
Forks
148

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
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"`
Ver no GitHub