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

Merge remote-tracking branch 'origin/master'

#comments-start
title=autoit test
cid=0
pid=0
1. check nodepad content >> something
Open Notepad, enter and save text.
#comments-end
......
......@@ -12,7 +12,7 @@ func RunUnitTest(cmdStr string) string {
shellUtils.ExeAppWithOutput(cmdStr)
endTime := time2.Now().Unix()
testSuites, resultDir := testingService.RetrieveUnitResult()
testSuites, resultDir := testingService.RetrieveUnitResult(startTime)
cases, classNameMaxWidth, time := testingService.ParserUnitTestResult(testSuites)
if time == 0 {
......
......@@ -15,7 +15,7 @@ import (
"time"
)
func RetrieveUnitResult() (suites []model.UnitTestSuite, resultDir string) {
func RetrieveUnitResult(startTime int64) (suites []model.UnitTestSuite, resultDir string) {
resultFiles := make([]string, 0)
if vari.UnitTestType == constant.UnitTestTypeJunit && vari.UnitTestTool == constant.UnitTestToolMvn {
......@@ -40,7 +40,7 @@ func RetrieveUnitResult() (suites []model.UnitTestSuite, resultDir string) {
for _, fi := range dir {
name := fi.Name()
ext := path.Ext(name)
if ext == ".xml" {
if ext == ".xml" && fi.ModTime().Unix() >= startTime {
resultFiles = append(resultFiles, resultDir+name)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册