File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed
sqldev/src/main/java/org/utplsql/sqldev/runner Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,41 @@ class UtplsqlRunner implements RealtimeReporterEventConsumer {
138138 }
139139
140140 private def dispatch doProcess (PostSuiteEvent event ) {
141- // ignore
141+ val test = run. currentTest
142+ // Errors on suite levels are reported as warnings by the utPLSQL framework,
143+ // since an error on suite level does not affect a status of a test.
144+ // It is possible that the test is OK, but contains error messages on suite level(s)
145+ // Populating test.errorStack would be a) wrong and b) redundant
146+ if (event. warnings !== null ) {
147+ if (test. counter. warning == 0 ) {
148+ test. counter. warning = 1
149+ run. counter. warning = run. counter. warning + 1
150+ }
151+ test. warnings = ' ' '
152+ «IF test.warnings !== null»
153+ «test.warnings»
154+
155+ «ENDIF»
156+ For suite «event.id»:
157+
158+ «event.warnings»
159+ ' ' ' . toString. trim
160+ }
161+ if (event. serverOutput !== null ) {
162+ if (test. serverOutput == = null ) {
163+ run. infoCount = run. infoCount + 1
164+ }
165+ test. serverOutput = ' ' '
166+ «IF test.serverOutput !== null»
167+ «test.serverOutput»
168+
169+ «ENDIF»
170+ For suite «event.id»:
171+
172+ «event.serverOutput»
173+ ' ' ' . toString. trim
174+ }
175+ panel. update(reporterId)
142176 }
143177
144178 private def dispatch doProcess (PreTestEvent event ) {
@@ -150,6 +184,7 @@ class UtplsqlRunner implements RealtimeReporterEventConsumer {
150184 }
151185 run. status = event. id
152186 run. currentTestNumber = event. testNumber
187+ run. currentTest = test
153188 panel. update(reporterId)
154189 }
155190
You can’t perform that action at this time.
0 commit comments