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

fix issue about unit testing

上级 86281538
......@@ -205,7 +205,7 @@ func RetrieveUnitResult(workspacePath string, startTime int64, testTool commCons
resultDir = commConsts.AllureReportDir
zipDir = resultDir
} else {
resultDir = "testresult.xml"
resultDir = "testresults.xml"
zipDir = resultDir
}
......
......@@ -2,7 +2,6 @@ package unitHelper
import (
commConsts "github.com/easysoft/zentaoatf/internal/pkg/consts"
"strings"
)
func GetUnitTools(args []string, startIndex int) {
......@@ -13,16 +12,12 @@ func GetUnitTools(args []string, startIndex int) {
} else if str == commConsts.UnitTestToolMvn {
commConsts.UnitBuildTool = commConsts.Maven
} else if str == commConsts.UnitTestToolMocha {
commConsts.UnitTestTool = commConsts.Puppeteer
commConsts.UnitBuildTool = commConsts.Mocha
} else if str == commConsts.UnitTestToolRobot {
commConsts.UnitTestTool = commConsts.RobotFramework
} else {
cmdStr := strings.ToLower(strings.Join(args[startIndex:], "; "))
if strings.Index(cmdStr, commConsts.Playwright.String()) > -1 {
commConsts.UnitTestTool = commConsts.Playwright
} else {
commConsts.UnitTestTool = commConsts.TestTool(str)
}
}
if commConsts.UnitTestTool == "" {
commConsts.UnitTestTool = commConsts.TestTool(commConsts.UnitTestType)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册