detector

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectFramework

func DetectFramework(path string) string

DetectFramework 根据路径自动检测测试框架。 检测优先级:

  1. 文件扩展名(.go → go-test, .py → pytest, .rs → cargo-test, .java → junit, .js/.ts/.jsx/.tsx → 需进一步看 package.json)
  2. 项目配置文件(package.json / pyproject.toml / go.mod / Cargo.toml / pom.xml / build.gradle)
  3. 向上递归查找配置文件(最多 5 层)
  4. 默认 go-test

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL