Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't run tests already having a status, and mark tests started #6

Merged
merged 1 commit into from
Jan 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Data/Source/Scripts/AutoTest_Suite.psc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ function BeforeTestsRun()
; To be overriden
endFunction

; Run a given registered test
; Run a given registered test.
; Set the status in this method.
; [API] This function is mandatory
;
; Parameters::
Expand Down
3 changes: 2 additions & 1 deletion Data/Source/Scripts/AutoTest_Suite_Locations.psc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function BeforeTestsRun()
ConsoleUtil.ExecuteCommand("setini \"bForceAutoVanityMode:Camera\" 1")
endFunction

; Run a given registered test
; Run a given registered test.
; Set the status in this method.
; [API] This function is mandatory
;
; Parameters::
Expand Down
3 changes: 2 additions & 1 deletion Data/Source/Scripts/AutoTest_Suite_NPCs.psc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function BeforeTestsRun()
ConsoleUtil.ExecuteCommand("tai")
endFunction

; Run a given registered test
; Run a given registered test.
; Set the status in this method.
; [API] This function is mandatory
;
; Parameters::
Expand Down
3 changes: 2 additions & 1 deletion Data/Source/Scripts/AutoTest_TestsRunner.psc
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ function RunTests(Quest questScript) global
while idxTest < nbrTests && InTestsSession()
string testName = scriptTest.GetTestName(idxTest)
string testStatus = scriptTest.GetTestStatus(testName)
if testStatus != "ok"
if testStatus == "" || testStatus == "started"
AutoTest_Log.Log("[ " + testType + " / " + testName + " (" + testStatus + ") ] - Start test")
scriptTest.SetTestStatus(testName, "started")
scriptTest.RunTest(testName)
AutoTest_Log.Log("[ " + testType + " / " + testName + " (" + scriptTest.GetTestStatus(testName) + ") ] - Test end")
endIf
Expand Down