gnodet-bot commented on code in PR #31154:
URL: https://github.com/apache/camel/pull/31154#discussion_r4754210001
##########
components/camel-robotframework/src/main/java/org/apache/camel/component/robotframework/RobotFrameworkEndpoint.java:
##########
@@ -108,26 +108,25 @@ protected void onExchange(Exchange exchange) throws
Exception {
generatedArguments.addNonEmptyStringToArguments(configuration.getName(), "-N");
generatedArguments.addNonEmptyStringToArguments(configuration.getDocument(),
"-D");
-
generatedArguments.addNonEmptyStringToArguments(configuration.getRunMode(),
"--runmode");
+ // --runmode was removed in Robot Framework 2.8; use
dryrun/exitOnFailure/skipTeardownOnExit/randomize instead
generatedArguments.addFlagToArguments(configuration.isDryrun(),
"--dryrun");
generatedArguments.addFlagToArguments(configuration.isExitOnFailure(),
"--exitonfailure");
generatedArguments.addFlagToArguments(configuration.isSkipTeardownOnExit(),
"--skipteardownonexit");
generatedArguments.addNonEmptyStringToArguments(configuration.getRandomize(),
"--randomize");
-
generatedArguments.addNonEmptyStringToArguments(configuration.getSplitOutputs(),
"--splitoutputs");
+ // --splitoutputs and --summarytitle were removed in Robot Framework
3.0
generatedArguments.addNonEmptyStringToArguments(configuration.getLogTitle(),
"--logtitle");
generatedArguments.addNonEmptyStringToArguments(configuration.getReportTitle(),
"--reporttitle");
generatedArguments.addNonEmptyStringToArguments(configuration.getReportBackground(),
"--reportbackground");
-
generatedArguments.addNonEmptyStringToArguments(configuration.getSummaryTitle(),
"--summarytitle");
generatedArguments.addNonEmptyStringToArguments(configuration.getLogLevel(),
"-L");
generatedArguments.addNonEmptyStringToArguments(configuration.getSuiteStatLevel(),
"--suitestatlevel");
-
generatedArguments.addNonEmptyStringToArguments(configuration.getMonitorWidth(),
"--monitorwidth");
-
generatedArguments.addNonEmptyStringToArguments(configuration.getMonitorColors(),
"--monitorcolors");
+ // --monitorwidth and --warnonskippedfiles were removed in Robot
Framework 3.0
+ // --monitorcolors was replaced by --consolecolors in Robot Framework
2.7
+
generatedArguments.addNonEmptyStringToArguments(configuration.getMonitorColors(),
"--consolecolors");
generatedArguments.addNonEmptyStringToArguments(configuration.getListener(),
"--listener");
generatedArguments.addFlagToArguments(configuration.isRunEmptySuite(),
"--runemptysuite");
generatedArguments.addFlagToArguments(configuration.isNoStatusReturnCode(),
"--nostatusrc");
Review Comment:
**Nit:** `--monitorcolors` was replaced by `--consolecolors` in Robot
Framework **2.9**, not 2.7 (oscerd traced this against `run.py` at the release
tags). Since the user-visible descriptions already use the safer `"not
supported by Robot Framework 4.1.2"` wording, the impact is minimal — but the
comment could be corrected to 2.9 for accuracy.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]