woocommerce/woocommerce-android / .agents/skills/store-tests
store-tests
VerifiedMain app unit testing patterns (BaseUnitTest, BDD naming, mockito-kotlin, AssertJ, StateFlow/LiveData capture, coroutine dispatchers). Use when writing, editing, exploring, debugging, or reviewing unit tests in the store management app. For POS (WooPos*) tests, use the `pos-tests` skill instead.
Store App Unit Tests
@docs/store-testing.md
Workflow
- Read the class under test to understand its dependencies, public API, and state management
- Find existing tests in the same package/feature for patterns to follow
- Determine test location: mirror main source path under
src/test/ - Write the test class following the conventions in the testing doc above
- Run the test:
./gradlew :WooCommerce:testWasabiDebugUnitTest --tests "*.ClassName"- For libs:
./gradlew :libs:<module>:testDebugUnitTest --tests "*.ClassName"
- For libs:
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |