Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
4d0880b9
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4d0880b9
编写于
4月 01, 2020
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change json key to use Camel-Case
上级
324afa68
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
116 addition
and
106 deletion
+116
-106
src/action/bug.go
src/action/bug.go
+2
-2
src/action/clean.go
src/action/clean.go
+1
-1
src/action/ztfResult.go
src/action/ztfResult.go
+2
-2
src/action/ztfTest.go
src/action/ztfTest.go
+3
-3
src/model/testing.go
src/model/testing.go
+45
-45
src/service/script/viewer.go
src/service/script/viewer.go
+5
-5
src/service/testing/unitTestResult.go
src/service/testing/unitTestResult.go
+17
-15
src/service/testing/ztfCheck.go
src/service/testing/ztfCheck.go
+2
-2
src/service/testing/ztfTestReport.go
src/service/testing/ztfTestReport.go
+3
-3
src/service/testing/ztfTestResult.go
src/service/testing/ztfTestResult.go
+1
-1
src/service/zentao/bug.go
src/service/zentao/bug.go
+2
-2
src/service/zentao/testResult.go
src/service/zentao/testResult.go
+2
-2
src/service/zentao/ztfTestResult.go
src/service/zentao/ztfTestResult.go
+2
-2
src/utils/assert/assert.go
src/utils/assert/assert.go
+1
-1
src/utils/config/config.go
src/utils/config/config.go
+6
-6
src/utils/file/file.go
src/utils/file/file.go
+2
-2
src/utils/vari/vari.go
src/utils/vari/vari.go
+7
-6
src/ztf.go
src/ztf.go
+13
-6
未找到文件。
src/action/bug.go
浏览文件 @
4d0880b9
...
...
@@ -25,11 +25,11 @@ func CommitBug(files []string) {
}
resultDir
=
fileUtils
.
UpdateDir
(
resultDir
)
report
:=
testingService
.
GetZ
tf
TestReportForSubmit
(
resultDir
)
report
:=
testingService
.
GetZ
TF
TestReportForSubmit
(
resultDir
)
ids
:=
make
([]
string
,
0
)
lines
:=
make
([]
string
,
0
)
for
_
,
cs
:=
range
report
.
Z
tf
CaseResults
{
for
_
,
cs
:=
range
report
.
Z
TF
CaseResults
{
if
cs
.
Status
!=
constant
.
PASS
.
String
()
{
lines
=
append
(
lines
,
fmt
.
Sprintf
(
"%d. %s %s"
,
cs
.
Id
,
cs
.
Title
,
logUtils
.
ColoredStatus
(
cs
.
Status
)))
ids
=
append
(
ids
,
strconv
.
Itoa
(
cs
.
Id
))
...
...
src/action/clean.go
浏览文件 @
4d0880b9
...
...
@@ -9,7 +9,7 @@ import (
)
func
Clean
()
{
path
:=
vari
.
Z
tf
Dir
+
constant
.
LogDir
path
:=
vari
.
Z
TF
Dir
+
constant
.
LogDir
bak
:=
path
[
:
len
(
path
)
-
1
]
+
"-bak"
+
string
(
os
.
PathSeparator
)
+
path
[
len
(
path
)
:
]
os
.
RemoveAll
(
path
)
...
...
src/action/ztfResult.go
浏览文件 @
4d0880b9
...
...
@@ -6,7 +6,7 @@ import (
stdinUtils
"github.com/easysoft/zentaoatf/src/utils/stdin"
)
func
CommitZ
tf
TestResult
(
files
[]
string
,
noNeedConfirm
bool
)
{
func
CommitZ
TF
TestResult
(
files
[]
string
,
noNeedConfirm
bool
)
{
var
resultDir
string
if
len
(
files
)
>
0
{
resultDir
=
files
[
0
]
...
...
@@ -15,6 +15,6 @@ func CommitZtfTestResult(files []string, noNeedConfirm bool) {
}
resultDir
=
fileUtils
.
UpdateDir
(
resultDir
)
zentaoService
.
CommitZ
tf
TestResult
(
resultDir
,
noNeedConfirm
)
zentaoService
.
CommitZ
TF
TestResult
(
resultDir
,
noNeedConfirm
)
}
src/action/ztfTest.go
浏览文件 @
4d0880b9
...
...
@@ -19,7 +19,7 @@ import (
"strconv"
)
func
RunZ
tf
Test
(
files
[]
string
,
suiteIdStr
string
,
taskIdStr
string
)
error
{
func
RunZ
TF
Test
(
files
[]
string
,
suiteIdStr
string
,
taskIdStr
string
)
error
{
logUtils
.
InitLogger
()
cases
:=
make
([]
string
,
0
)
...
...
@@ -146,7 +146,7 @@ func runCases(files []string) {
}
var
report
=
model
.
TestReport
{
Env
:
commonUtils
.
GetOs
(),
Pass
:
0
,
Fail
:
0
,
Total
:
0
,
Z
tfCaseResults
:
make
([]
model
.
Ztf
CaseResult
,
0
)}
Pass
:
0
,
Fail
:
0
,
Total
:
0
,
Z
TFCaseResults
:
make
([]
model
.
ZTF
CaseResult
,
0
)}
report
.
TestType
=
"ztf"
report
.
TestFrame
=
"ztf"
...
...
@@ -166,7 +166,7 @@ func runCases(files []string) {
}
testingService
.
ExeScripts
(
casesToRun
,
casesToIgnore
,
&
report
,
pathMaxWidth
,
numbMaxWidth
)
testingService
.
GenZ
tf
TestReport
(
report
,
pathMaxWidth
)
testingService
.
GenZ
TF
TestReport
(
report
,
pathMaxWidth
)
}
func
isRunWithSuiteFile
(
files
[]
string
)
(
string
,
string
)
{
...
...
src/model/testing.go
浏览文件 @
4d0880b9
...
...
@@ -113,48 +113,48 @@ type Bug struct {
}
type
TestReport
struct
{
Env
string
TestType
string
TestFrame
string
ProductId
int
TaskId
int
ZentaoData
string
BuildUrl
string
Pass
int
Fail
int
Skip
int
Total
int
StartTime
int64
EndTime
int64
Duration
int64
Z
tfCaseResults
[]
ZtfCaseResult
UnitCaseResults
[]
UnitCaseResult
Env
string
`json:"env"`
TestType
string
`json:"testType"`
TestFrame
string
`json:"TestFrame"`
ProductId
int
`json:"ProductId"`
TaskId
int
`json:"TaskId"`
ZentaoData
string
`json:"ZentaoData"`
BuildUrl
string
`json:"BuildUrl"`
Pass
int
`json:"Pass"`
Fail
int
`json:"Fail"`
Skip
int
`json:"Skip"`
Total
int
`json:"Total"`
StartTime
int64
`json:"StartTime"`
EndTime
int64
`json:"EndTime"`
Duration
int64
`json:"Duration"`
Z
TFCaseResults
[]
ZTFCaseResult
`json:"ZTFCaseResults"`
UnitCaseResults
[]
UnitCaseResult
`json:"UnitCaseResults"`
}
type
Z
tf
CaseResult
struct
{
Id
int
ProductId
int
Path
string
Status
string
Title
string
type
Z
TF
CaseResult
struct
{
Id
int
`json:"Id"`
ProductId
int
`json:"ProductId"`
Path
string
`json:"Path"`
Status
string
`json:"Status"`
Title
string
`json:"Title"`
Steps
[]
StepLog
Steps
[]
StepLog
`json:"Steps"`
}
type
StepLog
struct
{
Id
string
Name
string
Status
bool
Id
string
`json:"Id"`
Name
string
`json:"Name"`
Status
bool
`json:"Status"`
CheckPoints
[]
CheckPointLog
CheckPoints
[]
CheckPointLog
`json:"CheckPoints"`
}
type
CheckPointLog
struct
{
Numb
int
Expect
string
Actual
string
Status
bool
Numb
int
`json:"Numb"`
Expect
string
`json:"Expect"`
Actual
string
`json:"Actual"`
Status
bool
`json:"Status"`
}
// 单元测试
...
...
@@ -168,26 +168,26 @@ type UnitTestSuite struct {
TestCases
[]
UnitCaseResult
`xml:"testcase"`
}
type
UnitCaseResult
struct
{
Title
string
`xml:"name,attr"`
TestSuite
string
`xml:"classname,attr"`
Duration
float32
`xml:"time,attr"`
Failure
*
Failure
`xml:"failure,omitempty"`
Title
string
`
json:"title"
xml:"name,attr"`
TestSuite
string
`
json:"testSuite"
xml:"classname,attr"`
Duration
float32
`
json:"duration"
xml:"time,attr"`
Failure
*
Failure
`
json:"failure"
xml:"failure,omitempty"`
Id
int
Status
string
Id
int
`json:"id"`
Status
string
`json:"status"`
}
type
Failure
struct
{
Type
string
`xml:"type,attr"`
Desc
string
`xml:",innerxml"`
Type
string
`
json:"type"
xml:"type,attr"`
Desc
string
`
json:"desc"
xml:",innerxml"`
}
type
Properties
struct
{
Property
[]
Property
`xml:"property"`
Property
[]
Property
`
json:"property"
xml:"property"`
}
type
Property
struct
{
Name
string
`xml:"name,attr"`
Value
string
`xml:"value,attr"`
Name
string
`
json:"name"
xml:"name,attr"`
Value
string
`
json:"value"
xml:"value,attr"`
}
// jtest xml
...
...
src/service/script/viewer.go
浏览文件 @
4d0880b9
...
...
@@ -19,7 +19,7 @@ import (
func
List
(
cases
[]
string
,
keywords
string
)
{
keywords
=
strings
.
TrimSpace
(
keywords
)
scriptArr
:=
make
([]
model
.
Z
tf
CaseResult
,
0
)
scriptArr
:=
make
([]
model
.
Z
TF
CaseResult
,
0
)
pathMaxWidth
:=
0
numbMaxWidth
:=
0
...
...
@@ -62,7 +62,7 @@ func List(cases []string, keywords string) {
}
}
func
SummaryObj
(
file
string
,
keywords
string
)
(
bool
,
model
.
Z
tf
CaseResult
)
{
func
SummaryObj
(
file
string
,
keywords
string
)
(
bool
,
model
.
Z
TF
CaseResult
)
{
pass
,
caseId
,
_
,
title
:=
zentaoUtils
.
GetCaseInfo
(
file
)
if
pass
{
...
...
@@ -78,12 +78,12 @@ func SummaryObj(file string, keywords string) (bool, model.ZtfCaseResult) {
if
pass
{
//fmt.Printf("%d. %s \n", caseId, title)
return
true
,
model
.
Z
tf
CaseResult
{
Id
:
caseId
,
Title
:
title
,
Path
:
file
}
return
true
,
model
.
Z
TF
CaseResult
{
Id
:
caseId
,
Title
:
title
,
Path
:
file
}
}
else
{
return
false
,
model
.
Z
tf
CaseResult
{}
return
false
,
model
.
Z
TF
CaseResult
{}
}
}
return
false
,
model
.
Z
tf
CaseResult
{}
return
false
,
model
.
Z
TF
CaseResult
{}
}
func
View
(
cases
[]
string
,
keywords
string
)
{
...
...
src/service/testing/unitTestResult.go
浏览文件 @
4d0880b9
...
...
@@ -24,25 +24,27 @@ func RetrieveUnitResult() []model.UnitTestSuite {
resultDir
=
fmt
.
Sprintf
(
"target%ssurefire-reports%s"
,
sep
,
sep
)
}
else
if
vari
.
UnitTestType
==
"testng"
&&
vari
.
UnitTestTool
==
"mvn"
{
resultDir
=
fmt
.
Sprintf
(
"target%ssurefire-reports%sjunitreports"
,
sep
,
sep
)
}
else
if
vari
.
UnitTestType
==
"jtest"
{
resultDir
=
"./"
}
else
if
vari
.
UnitTestType
==
"phpunit"
{
resultDir
=
"./"
}
else
if
vari
.
UnitTestType
==
"pytest"
{
resultDir
=
"./"
}
else
if
vari
.
UnitTestType
==
"gtest"
{
resultDir
=
"./"
}
else
{
resultDir
=
vari
.
UnitTestResult
}
dir
,
err
:=
ioutil
.
ReadDir
(
resultDir
)
if
err
==
nil
{
for
_
,
fi
:=
range
dir
{
name
:=
fi
.
Name
()
ext
:=
path
.
Ext
(
name
)
if
ext
==
".xml"
{
resultFiles
=
append
(
resultFiles
,
resultDir
+
name
)
if
fileUtils
.
IsDir
(
resultDir
)
{
if
resultDir
[
len
(
resultDir
)
-
1
:
]
!=
sep
{
resultDir
=
resultDir
+
sep
}
dir
,
err
:=
ioutil
.
ReadDir
(
resultDir
)
if
err
==
nil
{
for
_
,
fi
:=
range
dir
{
name
:=
fi
.
Name
()
ext
:=
path
.
Ext
(
name
)
if
ext
==
".xml"
{
resultFiles
=
append
(
resultFiles
,
resultDir
+
name
)
}
}
}
}
else
{
resultFiles
=
append
(
resultFiles
,
resultDir
)
}
suites
:=
make
([]
model
.
UnitTestSuite
,
0
)
...
...
src/service/testing/ztfCheck.go
浏览文件 @
4d0880b9
...
...
@@ -78,9 +78,9 @@ func ValidateCaseResult(scriptFile string, langType string,
}
report
.
Total
=
report
.
Total
+
1
cs
:=
model
.
Z
tf
CaseResult
{
Id
:
caseId
,
ProductId
:
productId
,
Title
:
title
,
cs
:=
model
.
Z
TF
CaseResult
{
Id
:
caseId
,
ProductId
:
productId
,
Title
:
title
,
Path
:
scriptFile
,
Status
:
caseResult
,
Steps
:
stepLogs
}
report
.
Z
tfCaseResults
=
append
(
report
.
Ztf
CaseResults
,
cs
)
report
.
Z
TFCaseResults
=
append
(
report
.
ZTF
CaseResults
,
cs
)
// print case result to console
statusColor
:=
logUtils
.
ColoredStatus
(
cs
.
Status
)
...
...
src/service/testing/ztfTestReport.go
浏览文件 @
4d0880b9
...
...
@@ -15,8 +15,8 @@ import (
"time"
)
func
GenZ
tf
TestReport
(
report
model
.
TestReport
,
pathMaxWidth
int
)
{
if
len
(
report
.
Z
tf
CaseResults
)
==
0
{
func
GenZ
TF
TestReport
(
report
model
.
TestReport
,
pathMaxWidth
int
)
{
if
len
(
report
.
Z
TF
CaseResults
)
==
0
{
return
}
...
...
@@ -25,7 +25,7 @@ func GenZtfTestReport(report model.TestReport, pathMaxWidth int) {
failedCaseLines
:=
make
([]
string
,
0
)
failedCaseLinesWithCheckpoint
:=
make
([]
string
,
0
)
for
_
,
cs
:=
range
report
.
Z
tf
CaseResults
{
for
_
,
cs
:=
range
report
.
Z
TF
CaseResults
{
if
cs
.
Status
==
"fail"
{
if
failedCount
>
0
{
failedCaseLinesWithCheckpoint
=
append
(
failedCaseLinesWithCheckpoint
,
""
)
...
...
src/service/testing/ztfTestResult.go
浏览文件 @
4d0880b9
...
...
@@ -10,7 +10,7 @@ import (
"strings"
)
func
GetZ
tf
TestReportForSubmit
(
resultDir
string
)
model
.
TestReport
{
func
GetZ
TF
TestReportForSubmit
(
resultDir
string
)
model
.
TestReport
{
resultPath
:=
resultDir
+
"result.json"
content
:=
fileUtils
.
ReadFile
(
resultPath
)
...
...
src/service/zentao/bug.go
浏览文件 @
4d0880b9
...
...
@@ -23,8 +23,8 @@ func PrepareBug(resultDir string, caseIdStr string) (model.Bug, string) {
return
model
.
Bug
{},
""
}
report
:=
testingService
.
GetZ
tf
TestReportForSubmit
(
resultDir
)
for
_
,
cs
:=
range
report
.
Z
tf
CaseResults
{
report
:=
testingService
.
GetZ
TF
TestReportForSubmit
(
resultDir
)
for
_
,
cs
:=
range
report
.
Z
TF
CaseResults
{
if
cs
.
Id
!=
caseId
{
continue
}
...
...
src/service/zentao/testResult.go
浏览文件 @
4d0880b9
...
...
@@ -21,8 +21,8 @@ func CommitTestResult(report model.TestReport, testTaskId int) {
report
.
BuildUrl
=
os
.
Getenv
(
"BUILD_URL"
)
report
.
TaskId
=
testTaskId
if
len
(
report
.
Z
tf
CaseResults
)
>
0
{
report
.
ProductId
=
report
.
Z
tf
CaseResults
[
0
]
.
ProductId
if
len
(
report
.
Z
TF
CaseResults
)
>
0
{
report
.
ProductId
=
report
.
Z
TF
CaseResults
[
0
]
.
ProductId
}
url
:=
conf
.
Url
+
zentaoUtils
.
GenApiUri
(
"unittest"
,
"commitResult"
,
""
)
...
...
src/service/zentao/ztfTestResult.go
浏览文件 @
4d0880b9
...
...
@@ -8,11 +8,11 @@ import (
"strconv"
)
func
CommitZ
tf
TestResult
(
resultDir
string
,
noNeedConfirm
bool
)
{
func
CommitZ
TF
TestResult
(
resultDir
string
,
noNeedConfirm
bool
)
{
conf
:=
configUtils
.
ReadCurrConfig
()
Login
(
conf
.
Url
,
conf
.
Account
,
conf
.
Password
)
report
:=
testingService
.
GetZ
tf
TestReportForSubmit
(
resultDir
)
report
:=
testingService
.
GetZ
TF
TestReportForSubmit
(
resultDir
)
task
:=
stdinUtils
.
GetInput
(
"
\\
d*"
,
""
,
i118Utils
.
I118Prt
.
Sprintf
(
"pls_enter"
)
+
i118Utils
.
I118Prt
.
Sprintf
(
"task_id"
)
+
...
...
src/utils/assert/assert.go
浏览文件 @
4d0880b9
...
...
@@ -150,7 +150,7 @@ func GetFailedCasesDirectlyFromTestResult(resultFile string) []string {
var
report
model
.
TestReport
json
.
Unmarshal
([]
byte
(
content
),
&
report
)
for
_
,
cs
:=
range
report
.
Z
tf
CaseResults
{
for
_
,
cs
:=
range
report
.
Z
TF
CaseResults
{
if
cs
.
Status
!=
"pass"
{
cases
=
append
(
cases
,
cs
.
Path
)
}
...
...
src/utils/config/config.go
浏览文件 @
4d0880b9
...
...
@@ -20,10 +20,10 @@ import (
)
func
InitConfig
()
{
vari
.
Z
tfDir
=
fileUtils
.
GetZtf
Dir
()
vari
.
Z
TFDir
=
fileUtils
.
GetZTF
Dir
()
CheckConfigPermission
()
constant
.
ConfigFile
=
vari
.
Z
tf
Dir
+
constant
.
ConfigFile
constant
.
ConfigFile
=
vari
.
Z
TF
Dir
+
constant
.
ConfigFile
vari
.
Config
=
getInst
()
// screen size
...
...
@@ -40,7 +40,7 @@ func InitScreenSize() {
}
func
SaveConfig
(
conf
model
.
Config
)
error
{
fileUtils
.
MkDirIfNeeded
(
fileUtils
.
GetZ
tf
Dir
()
+
"conf"
)
fileUtils
.
MkDirIfNeeded
(
fileUtils
.
GetZ
TF
Dir
()
+
"conf"
)
conf
.
Version
=
constant
.
ConfigVer
...
...
@@ -109,12 +109,12 @@ func getInst() model.Config {
}
func
CheckConfigPermission
()
{
//err := syscall.Access(vari.Z
tf
Dir, syscall.O_RDWR)
//err := syscall.Access(vari.Z
TF
Dir, syscall.O_RDWR)
err
:=
fileUtils
.
MkDirIfNeeded
(
vari
.
Z
tf
Dir
+
"conf"
)
err
:=
fileUtils
.
MkDirIfNeeded
(
vari
.
Z
TF
Dir
+
"conf"
)
if
err
!=
nil
{
logUtils
.
PrintToWithColor
(
fmt
.
Sprintf
(
"Permission denied to open %s for write. Please change work dir."
,
vari
.
Z
tf
Dir
),
color
.
FgRed
)
fmt
.
Sprintf
(
"Permission denied to open %s for write. Please change work dir."
,
vari
.
Z
TF
Dir
),
color
.
FgRed
)
os
.
Exit
(
0
)
}
}
...
...
src/utils/file/file.go
浏览文件 @
4d0880b9
...
...
@@ -133,7 +133,7 @@ func ReadResData(path string) string {
return
jsonStr
}
func
GetZ
tf
Dir
()
string
{
// where ztf command in
func
GetZ
TF
Dir
()
string
{
// where ztf command in
var
dir
string
arg1
:=
strings
.
ToLower
(
os
.
Args
[
0
])
...
...
@@ -155,7 +155,7 @@ func GetZtfDir() string { // where ztf command in
}
func
GetLogDir
()
string
{
path
:=
vari
.
Z
tf
Dir
+
constant
.
LogDir
path
:=
vari
.
Z
TF
Dir
+
constant
.
LogDir
dir
,
_
:=
ioutil
.
ReadDir
(
path
)
...
...
src/utils/vari/vari.go
浏览文件 @
4d0880b9
...
...
@@ -11,12 +11,13 @@ var (
Cui
*
gocui
.
Gui
MainViewHeight
int
RunMode
constant
.
RunMode
ZtfDir
string
LogDir
string
RunFromCui
bool
UnitTestType
string
UnitTestTool
string
RunMode
constant
.
RunMode
ZTFDir
string
LogDir
string
RunFromCui
bool
UnitTestType
string
UnitTestTool
string
UnitTestResult
string
SessionVar
string
SessionId
string
...
...
src/ztf.go
浏览文件 @
4d0880b9
...
...
@@ -75,6 +75,8 @@ func main() {
flagSet
.
StringVar
(
&
placeholder
,
"r"
,
""
,
""
)
flagSet
.
StringVar
(
&
placeholder
,
"v"
,
""
,
""
)
flagSet
.
StringVar
(
&
vari
.
UnitTestResult
,
"result"
,
""
,
""
)
if
len
(
os
.
Args
)
==
1
{
os
.
Args
=
append
(
os
.
Args
,
"run"
,
"."
)
}
...
...
@@ -102,7 +104,7 @@ func main() {
case
"cr"
:
files
:=
fileUtils
.
GetFilesFromParams
(
os
.
Args
[
2
:
])
if
err
:=
flagSet
.
Parse
(
os
.
Args
[
len
(
files
)
+
2
:
]);
err
==
nil
{
action
.
CommitZ
tf
TestResult
(
files
,
noNeedConfirm
)
action
.
CommitZ
TF
TestResult
(
files
,
noNeedConfirm
)
}
case
"cb"
:
...
...
@@ -159,12 +161,17 @@ func run(args []string) {
vari
.
UnitTestType
=
args
[
2
]
if
args
[
3
]
==
"mvn"
{
vari
.
UnitTestTool
=
"mvn"
}
else
{
flagSet
.
Parse
(
args
[
3
:
])
}
cmd
:=
strings
.
Join
(
args
[
3
:
],
" "
)
start
:=
3
if
vari
.
UnitTestResult
!=
""
{
start
=
start
+
2
}
else
{
vari
.
UnitTestResult
=
"./"
}
cmd
:=
strings
.
Join
(
args
[
start
:
],
" "
)
action
.
RunUnitTest
(
cmd
)
}
else
{
// func test
files
:=
fileUtils
.
GetFilesFromParams
(
args
[
2
:
])
...
...
@@ -177,7 +184,7 @@ func run(args []string) {
if
vari
.
Interpreter
!=
""
{
logUtils
.
PrintToWithColor
(
i118Utils
.
I118Prt
.
Sprintf
(
"run_with_specific_interpreter"
,
vari
.
Interpreter
),
color
.
FgCyan
)
}
action
.
RunZ
tf
Test
(
files
,
suiteId
,
taskId
)
action
.
RunZ
TF
Test
(
files
,
suiteId
,
taskId
)
}
else
{
logUtils
.
PrintUsage
()
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录