{
  "id": "python/pytest-warning-summary-missing",
  "signature": "PytestWarning: No test reports found for 'test_x'",
  "signature_zh": "pytest 警告：未找到 'test_x' 的测试报告",
  "regex": "PytestWarning:\\ No\\ test\\ reports\\ found\\ for\\ 'test_x'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "使用 pytest 插件（如 pytest-html）时，测试报告文件未生成或路径错误。",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 pytest 插件（如 pytest-html）时，测试报告文件未生成或路径错误。",
  "versions": [
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "手动创建报告",
      "why_fails": "尝试手动创建报告文件但格式错误",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "错误配置路径",
      "why_fails": "尝试在 conftest.py 中配置报告路径但未生效",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "确保使用命令行参数生成报告",
      "success_rate": 0.95,
      "how": "pytest --html=report.html",
      "condition": "",
      "sources": []
    },
    {
      "action": "更新插件",
      "success_rate": 0.8,
      "how": "检查插件版本是否兼容，更新 pytest-html",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2025-06-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}