# Test

> Run tests for WooCommerce iOS (full suite or targeted)

- Skill: `woocommerce/test` (Agent Skill)
- Install (CLI): `npx skillmds@latest add woocommerce/test`
- Raw SKILL.md: https://api.skillmd.com/api/skills/woocommerce/test/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: woocommerce (https://skillmd.com/u/woocommerce)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/woocommerce/test

---


Run unit tests for the WooCommerce iOS project using the Fastlane `test` lane.

## Run tests

Determine scope from $ARGUMENTS:

- **No arguments**: Run the full unit test suite:
```bash
bundle exec fastlane test 2>&1 | tail -100
```

- **Module name** (e.g., `Yosemite`, `Networking`, `Storage`) or **test class/method**: Use the `only_testing` option:
```bash
bundle exec fastlane test only_testing:"<Module>Tests[/<ClassName>[/<method>]]" 2>&1 | tail -100
```

- **Clean build requested** (or after dependency/scheme changes): Add `clean:true`:
```bash
bundle exec fastlane test clean:true 2>&1 | tail -100
```

Options can be combined:
```bash
bundle exec fastlane test only_testing:WooCommerceTests/MyClass clean:true 2>&1 | tail -100
```

## After running

1. Report pass/fail counts
2. If failures, show the failing test names and assertion messages
3. Read the failing test files to understand what went wrong
4. Suggest fixes for failing tests

If the simulator is not available, use the `/simulator` skill to discover an available one, then retry.

