Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Release workflow #50

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private void execute(@Nonnull URI uri, @Nonnull FeatureContextAware context) {
if (feature.isPresent()) {
context.executeWithContext(feature.get());
} else {
LOGGER.warn("Unable to locate corresponding Feature for URI: " + uri);
LOGGER.warn("Unable to locate corresponding Feature for URI: {}", uri);
}
}

Expand Down Expand Up @@ -313,7 +313,7 @@ private void execute(@Nonnull TestCase testCase, @Nonnull ScenarioContextAware c
if (scenario.isPresent()) {
context.executeWithContext(f, scenario.get());
} else {
LOGGER.warn("Unable to locate corresponding Feature or Scenario context for URI: " + uri + "; line: " + line);
LOGGER.warn("Unable to locate corresponding Feature or Scenario context for URI: {}; line: {}", uri, line);
}
}
);
Expand Down Expand Up @@ -800,7 +800,7 @@ protected void handleSourceEvents(TestSourceParsed parseEvent) {
if (n instanceof Feature) {
featureContextMap.put(uri, new FeatureContext(uri, (Feature) n));
} else {
LOGGER.warn("Unknown node type: " + n.getClass().getSimpleName());
LOGGER.warn("Unknown node type: {}", n.getClass().getSimpleName());
}
});
}
Expand Down Expand Up @@ -979,10 +979,7 @@ protected ItemStatus mapItemStatus(@Nullable Status status) {
return null;
} else {
if (STATUS_MAPPING.get(status) == null) {
LOGGER.error(format(
"Unable to find direct mapping between Cucumber and ReportPortal for TestItem with status: '%s'.",
status
));
LOGGER.error("Unable to find direct mapping between Cucumber and ReportPortal for TestItem with status: '{}'.", status);
return ItemStatus.SKIPPED;
}
return STATUS_MAPPING.get(status);
Expand Down Expand Up @@ -1095,7 +1092,7 @@ protected String getCodeRef(@Nonnull TestStep testStep) {
}
}
} catch (Throwable e) {
LOGGER.error("Unable to get java code reference for the Test Step: " + cucumberLocation, e);
LOGGER.error("Unable to get java code reference for the Test Step: {}", cucumberLocation, e);
return cucumberLocation;
}
return cucumberLocation;
Expand Down