@@ -120,6 +120,12 @@ public class RunCommand implements ICommand {
120120 description = "Sets the timeout in minutes after which the cli will abort. Default 60" )
121121 private int timeoutInMinutes = 60 ;
122122
123+ @ Parameter (
124+ names = {"-dbout" , "--dbms_output" },
125+ description = "Enables DBMS_OUTPUT for the TestRunner (default: DISABLED)"
126+ )
127+ private boolean enableDbmsOutput = false ;
128+
123129 private CompatibilityProxy compatibilityProxy ;
124130 private ReporterFactory reporterFactory ;
125131 private ReporterManager reporterManager ;
@@ -157,15 +163,15 @@ public int doRun() throws OracleCreateStatmenetStuckException {
157163 reporterList = initReporters (dataSource );
158164
159165 // Output a message if --failureExitCode is set but database framework is not capable of
160- String msg = RunCommandChecker .getCheckFailOnErrorMessage (failureExitCode , compatibilityProxy .getDatabaseVersion ());
166+ String msg = RunCommandChecker .getCheckFailOnErrorMessage (failureExitCode , compatibilityProxy .getUtPlsqlVersion ());
161167 if (msg != null ) {
162168 System .out .println (msg );
163169 }
164170
165171 ExecutorService executorService = Executors .newFixedThreadPool (1 + reporterList .size ());
166172
167173 // Run tests.
168- Future <Boolean > future = executorService .submit (new RunTestRunnerTask (dataSource , newTestRunner (reporterList )));
174+ Future <Boolean > future = executorService .submit (new RunTestRunnerTask (dataSource , newTestRunner (reporterList ), enableDbmsOutput ));
169175
170176 // Gather each reporter results on a separate thread.
171177 getReporterManager ().startReporterGatherers (executorService , dataSource );
@@ -278,7 +284,7 @@ private void initDatabase(DataSource dataSource) throws SQLException {
278284 // First of all do a compatibility check and fail-fast
279285 compatibilityProxy = checkFrameworkCompatibility (conn );
280286
281- logger .info ("Successfully connected to database. UtPLSQL core: {}" , compatibilityProxy .getDatabaseVersion ());
287+ logger .info ("Successfully connected to database. UtPLSQL core: {}" , compatibilityProxy .getVersionDescription ());
282288 logger .info ("Oracle-Version: {}" , new DefaultDatabaseInformation ().getOracleVersion (conn ));
283289 }
284290 catch (SQLException e ) {
0 commit comments