本文へ移動
cccskills
無料GitHub で公開

debug

Debug a failing test or build error in WooCommerce iOS

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Debug a build failure or test failure in the WooCommerce iOS project.

For Build Failures

  1. Run the build and capture errors:
bundle exec fastlane build_for_testing 2>&1 \
  | grep -E "error:|fatal|cannot find|undefined|ambiguous" | head -30
  1. Identify the failing file and error type
  2. Read the failing file and surrounding context
  3. Common root causes in this codebase:
    • Missing module: Check Modules/Package.swift target dependencies
    • Type mismatch: A Networking model changed — check if Yosemite/Storage need updates
    • Cannot find type: May need bundle exec rake generate after adding GeneratedCopiable/Fakeable
    • Ambiguous reference: Duplicate type names across Networking vs Storage
    • CoreData model errors: Check Storage/CoreData/ model versions
  4. Propose or apply the fix

For Test Failures

  1. Run the specific failing test (targeted tests require xcodebuild directly):
xcodebuild -workspace WooCommerce.xcworkspace -scheme WooCommerce \
  -destination 'platform=iOS Simulator,name=iPhone 16' \
  test \
  -only-testing:"<target>/<class>/<method>" 2>&1 | tail -50
  1. Read the test file and understand what it expects
  2. Read the implementation file being tested
  3. Check the mock class setup
  4. Common test failure patterns:
    • Assertion mismatch: Verify expected vs actual, check mock stub values
    • Async timeout: Check if mock callbacks are being invoked, verify continuation setup
    • Nil unwrap: Check if mock return values are configured
    • Wrong mock state: Verify spy properties are set correctly
    • CoreData errors: Ensure InMemoryStorage is used, not persistent storage
    • Missing @MainActor: Some tests need MainActor annotation
  5. Propose or apply the fix

If the simulator destination fails, run xcrun simctl list devices available to discover available simulators, then re-run with a matching device name.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Launch the WooCommerce app on a simulator already authenticated into a given store (site credentials, application password, or WPCom), skipping the manual login UI. Meant to be referenced by other skills/workflows that need a logged-in session fast, but also directly runnable.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-ios3582026年10月10日 更新

bootstrap

無料

Install dependencies and build tools for WooCommerce iOS

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-ios3582026年10月10日 更新

lint

無料

Run SwiftLint on the WooCommerce iOS project

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-ios3582026年10月10日 更新

mocks

無料

Start or stop the WireMock API mock server for UI testing and E2E verification.

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-ios3582026年10月10日 更新

pr

無料

Create a pull request following WooCommerce iOS conventions

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-ios3582026年10月10日 更新

review

無料

Review code changes against WooCommerce iOS standards

日本語の概要は準備中です。原文の説明を表示しています。

woocommerce/woocommerce-ios3582026年10月10日 更新

woocommerce のスキルをすべて見る

このスキルの問題を報告する