# PytestWarning: No test reports found for 'test_x'

- **ID:** `python/pytest-warning-summary-missing`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

使用 pytest 插件（如 pytest-html）时，测试报告文件未生成或路径错误。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.10 | active | — | — |

## Workarounds

1. **确保使用命令行参数生成报告** (95% success)
   ```
   pytest --html=report.html
   ```
2. **更新插件** (80% success)
   ```
   检查插件版本是否兼容，更新 pytest-html
   ```

## Dead Ends

- **手动创建报告** — 尝试手动创建报告文件但格式错误 (60% fail)
- **错误配置路径** — 尝试在 conftest.py 中配置报告路径但未生效 (50% fail)
