Skip to content

Selcukes Report Plugin

Ramesh Babu Prudhvi edited this page Jul 16, 2020 · 3 revisions

Add Selcukes Report Plugin to pom.xml

<build>
        <plugins>
            <plugin>
                <groupId>io.github.selcukes</groupId>
                <artifactId>selcukes-report-plugin</artifactId>
                <version>LATEST</version>
                <executions>
                    <execution>
                        <id>report</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>reporting</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <<inputDirectory>${project.build.directory}/cucumber-reports</inputDirectory>
                    <outputDirectory>${project.build.directory}/selcukes-html-reports</outputDirectory>
                    <customParameters>
                        <Title>Selcukes Test</Title>
                        <URL>http://www.google.com</URL>
                        <_KeysStartingWithAnUnderscoreAreHidden>This is a long text that is displayed without the key.
                            This can be used to display longer texts in the report!
                        </_KeysStartingWithAnUnderscoreAreHidden>
                    </customParameters>

                    <!-- Optional report page title -->
                    <customPageTitle>My Test Report</customPageTitle>

                    <expandBeforeAfterHooks>true</expandBeforeAfterHooks>

                </configuration>
            </plugin>
        </plugins>
    </build>

Execute reporting goal:

mvn selcukes-report:reporting