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

Generate Maven Cucumber Report with Tags Excluded #268

Closed
MikeSurio opened this issue Aug 5, 2024 · 4 comments
Closed

Generate Maven Cucumber Report with Tags Excluded #268

MikeSurio opened this issue Aug 5, 2024 · 4 comments

Comments

@MikeSurio
Copy link

MikeSurio commented Aug 5, 2024

Hi, I would like to reduce the space consumed by the html report generated from our test tags. how can I exclude tag on maven configuration. We are supporting about 40 application and growing. We tend to use "@not-this-application" on some Test case that not are applicable to that market and we want those tags to not create report. Here is the current configuration we are using.

            <groupId>net.masterthought</groupId>
            <artifactId>maven-cucumber-reporting</artifactId>
            <version>5.8.1</version>
            <executions>
                <execution>
                    <id>execution</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <projectName>Cucumber Report</projectName>
                        <!-- optional, per documentation set this to "true" to bypass generation of Cucumber Reports entirely, defaults to false if not specified -->
                        <skip>false</skip>
                        <!-- output directory for the generated report -->
                        <outputDirectory>${project.build.directory}/cucumber-reports-json</outputDirectory>
                        <!-- optional, defaults to outputDirectory if not specified -->
                        <inputDirectory>${project.build.directory}</inputDirectory>
                        <mergeFeaturesById>true</mergeFeaturesById>
                        <!-- optional, set true to get a final report with latest results of the same test from different test runs -->
                        <mergeFeaturesWithRetest>true</mergeFeaturesWithRetest>
                        <!-- optional, set true to fail build on test failures -->
                        <jsonFiles>
                            <!-- supports wildcard or name pattern -->
                            <param>**/cucumber.json</param>
                        </jsonFiles>
                    </configuration>
                </execution>
            </executions>
        </plugin>
@damianszczepanik
Copy link
Owner

@MikeSurio
Copy link
Author

MikeSurio commented Aug 7, 2024

I was using maven-cucumber-reporting so I was not able to use the configuration.setExcludedTagsFromReport. Is there any documentation that I can follow to use that configuration on the pom.xml?

Here is our Test Runner
image

damianszczepanik added a commit that referenced this issue Aug 7, 2024
damianszczepanik added a commit that referenced this issue Aug 7, 2024
@damianszczepanik
Copy link
Owner

Fixed in #269 so wait for next release

@MikeSurio
Copy link
Author

Hi @damianszczepanik, Thank you! It is working on my local test now. will try it on our pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants