Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen2k committed Dec 13, 2021
2 parents 22a9751 + 063ed02 commit 3577b5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions demo/autoit/notepad.au3
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#comments-start
title=autoit test
cid=0
pid=0
1. check nodepad content >> something
Open Notepad, enter and save text.
#comments-end

Expand Down
2 changes: 1 addition & 1 deletion src/action/unitTest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/service/testing/unitTestResult.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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)
}
}
Expand Down

0 comments on commit 3577b5c

Please sign in to comment.