| name | test |
| description | Run tests for WooCommerce iOS (full suite or targeted) |
| user-invocable | true |
| allowed-tools | Bash, Read, Grep, Glob |
| argument-hint | [target] [class] [method] |
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:
bundle exec fastlane test 2>&1 | tail -100
- Module name (e.g.,
Yosemite, Networking, Storage) or test class/method: Use the only_testing option:
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:
bundle exec fastlane test clean:true 2>&1 | tail -100
Options can be combined:
bundle exec fastlane test only_testing:WooCommerceTests/MyClass clean:true 2>&1 | tail -100
After running
- Report pass/fail counts
- If failures, show the failing test names and assertion messages
- Read the failing test files to understand what went wrong
- Suggest fixes for failing tests
If the simulator is not available, use the /simulator skill to discover an available one, then retry.