Skip to content

Commit

Permalink
sorted custom parameters, reset example project to released Cluecumbe…
Browse files Browse the repository at this point in the history
…r version
  • Loading branch information
bischoffdev committed Jun 11, 2019
1 parent 0ed5898 commit 87faf09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions example-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.benjamin-bischoff</groupId>
<artifactId>cluecumber-test-project</artifactId>
<version>2.0.0</version>
<version>1.11.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -36,11 +36,11 @@
<generatedHtmlReportDirectory>${generated.report.location}</generatedHtmlReportDirectory>

<!-- Optional custom parameters that are shown on the start page if they have a value -->
<!-- <customParameters>-->
<!-- <Custom_Parameter>This is a test</Custom_Parameter>-->
<!-- <Custom_URL>http://www.google.com</Custom_URL>-->
<!-- <Empty_Parameter/>-->
<!-- </customParameters>-->
<customParameters>
<Custom_Parameter>This is a test</Custom_Parameter>
<Custom_URL>http://www.google.com</Custom_URL>
<Empty_Parameter/>
</customParameters>

<!-- Optional: mark scenarios as failed that contain pending or undefined steps (default: false) -->
<!--<failScenariosOnPendingOrUndefinedSteps>true</failScenariosOnPendingOrUndefinedSteps>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@

import javax.inject.Inject;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
* The main plugin class.
Expand Down Expand Up @@ -67,7 +66,7 @@ public final class CluecumberReportPlugin extends AbstractMojo {
* Custom parameters to add to the report.
*/
@Parameter(property = "reporting.customParameters")
private Map<String, String> customParameters = new HashMap<>();
private LinkedHashMap<String, String> customParameters = new LinkedHashMap<>();

/**
* Mark scenarios as failed if they contain pending or undefined steps (default: false).
Expand Down Expand Up @@ -134,7 +133,7 @@ public void execute() throws CluecumberPluginException {
logger.setMojoLogger(getLog());

if (skip) {
getLog().info("Cluecumber report generation was skipped by a configuration flag.");
getLog().info("Cluecumber report generation was skipped using the <skip> property.");
return;
}

Expand Down

0 comments on commit 87faf09

Please sign in to comment.