Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 21, 2025
1 parent d3d85fd commit 721a0e3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class ReportPortalUtils {
public static final String SKIPPED_ISSUE_KEY = "skippedIssue";
public static final String SCENARIO_CODE_REFERENCE_PATTERN = "%s/[SCENARIO:%s]";
public static final String EXAMPLE_CODE_REFERENCE_PATTERN = "%s/[EXAMPLE:%s%s]";
public static final String MARKDOWN_DELIMITER = "\n" + MarkdownUtils.LOGICAL_SEPARATOR + "\n";
public static final String MARKDOWN_DELIMITER = MarkdownUtils.LOGICAL_SEPARATOR;
public static final String MARKDOWN_DELIMITER_PATTERN = "%s" + MARKDOWN_DELIMITER + "%s";
public static final String FEATURE_TAG = "Feature: ";
public static final String SCENARIO_TAG = "Scenario: ";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class CallWithParametersHookTest {
private static final String PARAMETERS_DESCRIPTION_PATTERN =
"Parameters:\n\n" + MarkdownUtils.TABLE_INDENT + "|\u00A0vara\u00A0|\u00A0result\u00A0|\n" + MarkdownUtils.TABLE_INDENT
+ "|------|--------|\n" + MarkdownUtils.TABLE_INDENT
+ "|\u00A0\u00A02\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A04\u00A0\u00A0\u00A0\u00A0|\n"
+ "|\u00A0\u00A02\u00A0\u00A0\u00A0|\u00A0\u00A0\u00A04\u00A0\u00A0\u00A0\u00A0|\n\n"
+ MarkdownUtils.TABLE_ROW_SEPARATOR;
private final String featureId = CommonUtils.namedId("feature_");
private final String scenarioId = CommonUtils.namedId("scenario_");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

public class ScenarioDescriptionErrorLogWithDescriptionAndExamplesTest {

public static final String MARKDOWN_DELIMITER_PATTERN_THREE_ARGS = "%s\n---\n%s\n---\n%s";
public static final String MARKDOWN_DELIMITER_PATTERN_THREE_ARGS = "%s\n\n---\n\n%s\n\n---\n\n%s";
public static final String ERROR = "did not evaluate to 'true': mathResult == 5\nclasspath:feature/simple_failed_description_examples.feature:8";
public static final String ERROR_MESSAGE = "Then assert mathResult == 5\n" + ERROR;
public static final String DESCRIPTION_ERROR_LOG = "Error:\n" + ERROR;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void test_description_for_all_possible_items(boolean report) {
verify(client, times(3)).startTestItem(same(scenarioId), stepCaptor.capture());

StartTestItemRQ featureStart = featureCaptor.getValue();
assertThat(featureStart.getDescription(), endsWith("feature/description.feature\n---\nThis is my Feature description."));
assertThat(featureStart.getDescription(), endsWith("feature/description.feature\n\n---\n\nThis is my Feature description."));

StartTestItemRQ scenarioStart = scenarioCaptor.getValue();
assertThat(scenarioStart.getDescription(), equalTo(SCENARIO_DESCRIPTION));
Expand Down

0 comments on commit 721a0e3

Please sign in to comment.