Skip to content

Commit

Permalink
Avoid progress bars
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Dec 22, 2023
1 parent 75930fc commit f813639
Showing 1 changed file with 23 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

FileStream stdout nextPutAll: 'Preparing image for testing...'; cr; flush.

"Avoid showing progress bars."
Project current instVarNamed: #uiManager put: DummyUIManager new.
"ToolSet default: CommandLineToolSet."

Utilities
Expand Down Expand Up @@ -5797,25 +5799,27 @@ failingTests := {
SmallIntegerTest selector: #testPrintString.
}.

FileStream stdout cr; nextPutAll: 'Running passing tests...'; cr; flush.
result := TestSuite new addTests: passingTests; run.
FileStream stdout cr;
nextPutAll: 'Test results:'; cr;
nextPutAll: result asString; cr; flush.
exitCode := (result hasFailures or: [ result hasErrors ]) ifTrue: [ 1 ] ifFalse: [ 0 ].
WorldState addDeferredUIMessage: [
FileStream stdout cr; nextPutAll: 'Running passing tests...'; cr; flush.
result := TestSuite new addTests: passingTests; run.
FileStream stdout cr;
nextPutAll: 'Test results:'; cr;
nextPutAll: result asString; cr; flush.
exitCode := (result hasFailures or: [ result hasErrors ]) ifTrue: [ 1 ] ifFalse: [ 0 ].

FileStream stdout cr; nextPutAll: 'Running flaky tests...'; cr; flush.
result := TestSuite new addTests: flakyTests; run.
FileStream stdout cr;
nextPutAll: 'Test results:'; cr;
nextPutAll: result asString; cr; flush.
exitCode := result hasErrors ifTrue: [ 1 ] ifFalse: [ exitCode ].
FileStream stdout cr; nextPutAll: 'Running flaky tests...'; cr; flush.
result := TestSuite new addTests: flakyTests; run.
FileStream stdout cr;
nextPutAll: 'Test results:'; cr;
nextPutAll: result asString; cr; flush.
exitCode := result hasErrors ifTrue: [ 1 ] ifFalse: [ exitCode ].

FileStream stdout cr; nextPutAll: 'Running failing tests...'; cr; flush.
result := TestSuite new addTests: failingTests; run.
FileStream stdout cr;
nextPutAll: 'Test results:'; cr;
nextPutAll: result asString; cr; flush.
exitCode := result hasPassed ifTrue: [ 1 ] ifFalse: [ exitCode ].
FileStream stdout cr; nextPutAll: 'Running failing tests...'; cr; flush.
result := TestSuite new addTests: failingTests; run.
FileStream stdout cr;
nextPutAll: 'Test results:'; cr;
nextPutAll: result asString; cr; flush.
exitCode := result hasPassed ifTrue: [ 1 ] ifFalse: [ exitCode ].

Smalltalk quitPrimitive: exitCode
Smalltalk quitPrimitive: exitCode
]

0 comments on commit f813639

Please sign in to comment.