{
  "id": "cicd/circleci-no-test-results-found",
  "signature": "No test results were found. Check your test reporting configuration. The test_results path 'test-results/*.xml' did not match any files.",
  "signature_zh": "未找到测试结果。检查您的测试报告配置。测试结果路径 'test-results/*.xml' 未匹配任何文件。",
  "regex": "No test results were found\\. Check your test reporting configuration\\. The test_results path .* did not match any files\\.",
  "domain": "cicd",
  "category": "test_error",
  "subcategory": null,
  "root_cause": "CircleCI cannot find test result files because the glob pattern in the `store_test_results` step does not match the actual output location, or the test runner did not generate the expected XML files.",
  "root_cause_type": "generic",
  "root_cause_zh": "CircleCI 找不到测试结果文件，因为 `store_test_results` 步骤中的通配符模式与实际输出位置不匹配，或者测试运行器未生成预期的 XML 文件。",
  "versions": [
    {
      "version": "CircleCI CLI 0.1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CircleCI Server 4.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CircleCI hosted runners (medium, large)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Changing the glob pattern to `**/*.xml` without verifying the actual output directory structure often still fails because the test runner outputs files to a different relative path than expected.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Adding `ls -la test-results` before the store step may show files but the store step still fails if the files are generated inside a Docker container and not mounted to the workspace.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Explicitly create the test results directory and run tests with output redirected: `mkdir -p test-results && npm test -- --reporter junit --reporter-options output=test-results/junit.xml` and then use `path: test-results/` in store_test_results.",
      "success_rate": 0.9,
      "how": "Explicitly create the test results directory and run tests with output redirected: `mkdir -p test-results && npm test -- --reporter junit --reporter-options output=test-results/junit.xml` and then use `path: test-results/` in store_test_results.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use CircleCI's `collect_test_results` orb: `- orb: circleci/node@5.0.0` and configure `run: command: npm test` then `store_test_results: path: test-results` after ensuring the test framework outputs to that path.",
      "success_rate": 0.85,
      "how": "Use CircleCI's `collect_test_results` orb: `- orb: circleci/node@5.0.0` and configure `run: command: npm test` then `store_test_results: path: test-results` after ensuring the test framework outputs to that path.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Explicitly create the test results directory and run tests with output redirected: `mkdir -p test-results && npm test -- --reporter junit --reporter-options output=test-results/junit.xml` and then use `path: test-results/` in store_test_results.",
    "Use CircleCI's `collect_test_results` orb: `- orb: circleci/node@5.0.0` and configure `run: command: npm test` then `store_test_results: path: test-results` after ensuring the test framework outputs to that path."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://circleci.com/docs/collect-test-data/",
  "official_doc_section": null,
  "error_code": "CIRCLECI_NO_TEST_RESULTS",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.88,
  "resolvable": "true",
  "first_seen": "2024-03-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}