{
  "id": "python/setuptools-test-suite-not-found",
  "signature": "ERROR: setuptools.errors.TestFailedError: Test suite 'tests' not found in package 'mypackage'",
  "signature_zh": "错误：setuptools.errors.TestFailedError：在包 'mypackage' 中未找到测试套件 'tests'",
  "regex": "ERROR:\\ setuptools\\.errors\\.TestFailedError:\\ Test\\ suite\\ 'tests'\\ not\\ found\\ in\\ package\\ 'mypackage'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The test suite directory or module specified in setup.cfg does not exist.",
  "root_cause_type": "generic",
  "root_cause_zh": "setup.cfg 中指定的测试套件目录或模块不存在。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Creating an empty tests directory",
      "why_fails": "An empty directory is not a valid test suite.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the test_suite configuration",
      "why_fails": "Tests will not run automatically.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create the test suite directory with __init__.py",
      "success_rate": 0.95,
      "how": "Run: mkdir tests; touch tests/__init__.py; touch tests/test_example.py",
      "condition": "",
      "sources": []
    },
    {
      "action": "Correct the test_suite path in setup.cfg",
      "success_rate": 0.9,
      "how": "Set test_suite = tests.test_suite (if using a module).",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-11-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}