Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectFramework ¶
DetectFramework 根据路径自动检测测试框架。 检测优先级:
- 文件扩展名(.go → go-test, .py → pytest, .rs → cargo-test, .java → junit, .js/.ts/.jsx/.tsx → 需进一步看 package.json)
- 项目配置文件(package.json / pyproject.toml / go.mod / Cargo.toml / pom.xml / build.gradle)
- 向上递归查找配置文件(最多 5 层)
- 默认 go-test
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.