All Skills
Run tests for WooCommerce iOS (full suite or targeted)
Wtest
$
npx skills add woocommerce/woocommerce-ios --skill testRun unit tests for the WooCommerce iOS project. Determine scope from $ARGUMENTS:
- No arguments: Run the full test suite using rake:
bundle exec rake test 2>&1 | tail -100
- Module name (e.g.,
Yosemite,Networking,Storage): Run that module's tests:
xcodebuild -workspace WooCommerce.xcworkspace -scheme WooCommerce \
-destination 'platform=iOS Simulator,name=iPhone 16' \
-sdk iphonesimulator test -only-testing:"<Module>Tests" 2>&1 | tail -100
- Test class or method: Run targeted tests:
xcodebuild -workspace WooCommerce.xcworkspace -scheme WooCommerce \
-destination 'platform=iOS Simulator,name=iPhone 16' \
-sdk iphonesimulator test \
-only-testing:"WooCommerceTests/<ClassName>[/<method>]" 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 iPhone 16 is not available, try iPhone 15 or iPhone 16 Pro.