提交 24823ad0 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

ignore node_modules dir

上级 0fe626f7
......@@ -11,9 +11,8 @@ const (
Ip = "127.0.0.1"
Port = 8085
LevelToScanScriptFile = 8
JobTimeoutTime = 60 * 30
JobRetryTime = 3
JobTimeoutTime = 60 * 30
JobRetryTime = 3
ConfigVersion = "3.0"
ConfigDir = "conf"
......@@ -32,6 +31,8 @@ const (
ExpectResultPass = "pass"
LevelToScanScriptFile = 8
PathInfo = "PATH_INFO"
Get = "GET"
PthSep = string(os.PathSeparator)
......@@ -50,4 +51,7 @@ var (
JUnit.String(), TestNG.String(), PHPUnit.String(), PyTest.String(), Jest.String(), CppUnit.String(), GTest.String(), QTest.String(),
RobotFramework.String(), Cypress.String(), Playwright.String(), Puppeteer.String(), K6.String(), Zap.String(),
}
DirToIgnore = []string{"node_modules",
"bin", "logs", "xdoc", "log", "log-bak", "conf"}
)
......@@ -117,12 +117,10 @@ func IsDisable(enable string) bool {
func IgnoreZtfFile(path string) bool {
path = filepath.Base(path)
arr := []string{"bin", "logs", "xdoc",
"log", "log-bak", "conf"}
if strings.Index(path, ".") == 0 ||
stringUtils.FindInArr(path, arr) ||
if strings.Index(path, ".") == 0 || stringUtils.FindInArr(path, commConsts.DirToIgnore) ||
(len(path) >= 4 && path[len(path)-4:] == ".exp") {
return true
} else {
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册