提交 7e9e410a 编写于 作者: Z zhaoke

Fix sonar questions.

上级 272131e0
......@@ -497,7 +497,7 @@ func ConvertAllureResult(cases []commDomain.AllureCase) (testSuites []commDomain
var status commConsts.ResultStatus
if cs.Status == "passed" {
status = commConsts.PASS
} else if cs.Status == "passed" {
} else if cs.Status == "failed" {
status = commConsts.FAIL
}
caseResult := commDomain.UnitResult{
......@@ -873,14 +873,10 @@ func getResultDirForDifferentTool(testset *serverDomain.TestSet) {
testset.ZipDir = filepath.Dir(testset.ResultDir)
} else if testset.TestTool == commConsts.RobotFramework || testset.TestTool == commConsts.Cypress ||
testset.TestTool == commConsts.Playwright || testset.TestTool == commConsts.Puppeteer {
testset.TestTool == commConsts.Playwright || testset.TestTool == commConsts.Puppeteer ||
testset.TestTool == commConsts.K6 {
testset.ResultDir = "results"
testset.ZipDir = testset.ResultDir
} else if testset.TestTool == commConsts.K6 {
testset.ResultDir = "results"
testset.ZipDir = testset.ResultDir
} else if testset.TestTool == commConsts.Zap {
testset.ResultDir = getZapReport()
testset.ZipDir = testset.ResultDir
......
......@@ -5,7 +5,7 @@ sonar.sources=.
sonar.coverage.exclusions=**/*.*
sonar.inclusions=**/**.go
sonar.exclusions=bin/**,demo/**,log/**,xdoc/**,client/node_modules/**,client/ui/**,client/out/**,client/bin/**,ui/node_modules/**
sonar.exclusions=bin/**,demo/**,log/**,xdoc/**,client/node_modules/**,client/ui/**,client/out/**,client/bin/**,ui/node_modules/**,**/test/**
# sonar.host.url=http://localhost:59001
# sonar.login=sqp_fbda64ddf414b8ec8ad53f0b5cc02925e52383b0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册