FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[[ Tests ]] Make verbose mode less verbose · livecode/livecode@1c8a1ea · GitHub

This repository was archived by the owner on Aug 31, 2021. It is now read-only.
/ livecode Public archive

Commit 1c8a1ea

Browse files
committed
[[ Tests ]] Make verbose mode less verbose
This patch makes verbose testing mode less verbose by only writing the test output to stderr if the test failed. Additionally the output is written out just after the fail line so there is no need to scroll down to find the output.
1 parent f57e6a3 commit 1c8a1ea

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎tests/_testrunnerbehavior.livecodescript‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ private command doRun pInfo
139139
put tLogForWriting into url ("binfile:" & tLogFilename)
140140

141141
if TesterTapGetWorstResult(tAnalysis) is "FAIL" then
142-
if $V is not empty then
143-
write tLogForWriting to stdout
144-
end if
145142
quit 1
146143
end if
147144
end doRun
@@ -325,5 +322,15 @@ command TestRunnerProcessOutput pScriptfile, pCommand, pOutput
325322

326323
TesterLogSummaryLine tTapResults, (TesterGetPrettyTestName(pScriptFile) & ":" && pCommand)
327324

325+
if TesterTapGetWorstResult(tTapResults) is "FAIL" then
326+
if $V is not empty then
327+
put textEncode(pOutput, "utf8") into pOutput
328+
if the platform is "win32" then
329+
replace return with numToChar(13) & numToChar(10) in pOutput
330+
end if
331+
write pOutput to stderr
332+
end if
333+
end if
334+
328335
return tTapResults
329336
end TestRunnerProcessOutput

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL