temyers / cucumber-jvm-parallel-plugin

Maven plugin to help running Cucumber features in parallel
Apache License 2.0
129 stars 121 forks source link

Multiple modules, featureDirectory running over all modules instead one #187

Closed axelvuylsteke closed 5 years ago

axelvuylsteke commented 5 years ago

Hi,

I have a project with multiple modules. However in only 1 module is the location of my feature files. When I clean install my project this is good. However when i 'mvn clean verify -Pfullsuite' This will try to execute the on every single module. Is there a way to cope with this? Below my profile

<profile>
            <id>fullsuite</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.temyers</groupId>
                        <artifactId>cucumber-jvm-parallel-plugin</artifactId>
                        <version>5.0.0</version>
                        <executions>
                            <execution>
                                <id>generateRunners</id>
                                <phase>generate-test-sources</phase>
                                <goals>
                                    <goal>generateRunners</goal>
                                </goals>
                                <configuration>
                                    <glue>
                                        <package>be.refleqt.ms.testing.tests.tests</package>
                                    </glue>
                                    <outputDirectory>target/generated-test-sources/cucumber</outputDirectory>
                                    <featuresDirectory>tests/src/test/resources/features/</featuresDirectory>
                                    <cucumberOutputDir>target/cucumber-parallel</cucumberOutputDir>
                                    <namingPattern>Parallel{c}IT</namingPattern>
                                    <parallelScheme>FEATURE</parallelScheme>
                                    <useTestNG>true</useTestNG>
                                    <tags>@FullSuite</tags>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-failsafe-plugin</artifactId>
                        <version>2.22.0</version>
                        <executions>
                            <execution>
                                <id>acceptance-test</id>
                                <phase>integration-test</phase>
                                <goals>
                                    <goal>integration-test</goal>
                                </goals>
                                <configuration>
                                    <forkCount>10</forkCount>
                                    <reuseForks>true</reuseForks>
                                    <includes>
                                        <include>**/FullSuiteIT.java</include>
                                    </includes>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>net.masterthought</groupId>
                        <artifactId>maven-cucumber-reporting</artifactId>
                        <version>3.8.0</version>
                        <executions>
                            <execution>
                                <id>execution</id>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>generate</goal>
                                </goals>
                                <configuration>
                                    <projectName>Full Suite MicroServices Testing</projectName>
                                    <outputDirectory>${project.build.directory}/</outputDirectory>
                                    <cucumberOutput>${project.build.directory}/cucumber/json/FullSuite.json
                                    </cucumberOutput>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
screenshot 2018-11-23 at 14 35 57
axelvuylsteke commented 5 years ago

Solved.