maven-cucumber-reporting icon indicating copy to clipboard operation
maven-cucumber-reporting copied to clipboard

Plugin starts the verify phase

Open MrAlucardDante opened this issue 6 months ago • 3 comments

Looks like this #250 broke the execution policies in maven. Starting with version 5.8.2, which includes this PR, the plugin executes the verify stage on its own even though I have executed the test phase. That result in broken builds in our current pipeline because the test phase and the verify phase use 2 different profiles.

Here is the plugin part from my pom :

<plugin>
        <groupId>net.masterthought</groupId>
        <artifactId>maven-cucumber-reporting</artifactId>
        <version>5.8.2</version>
        <executions>
          <execution>
            <id>cucumber-report</id>
            <phase>test</phase>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <projectName>service</projectName>
              <skip>${maven.test.skip}</skip>
              <outputDirectory>
                ${project.build.directory}/cucumber-reports/
              </outputDirectory>
              <inputDirectory>
                ${project.build.directory}/cucumber-reports/
              </inputDirectory>
              <jsonFiles>
                <param>**/TestCucumber.json</param>
              </jsonFiles>
              <checkBuildResult>true</checkBuildResult>
            </configuration>
          </execution>
        </executions>
      </plugin>

and the logs that shows the start of the verify phase by the plugin:

[INFO] >>> plugin:5.8.2:generate (cucumber-report) > verify @ service

If I run mvn test on 5.8.1, there is no issue

[INFO] --- plugin:5.8.1:generate (cucumber-report) @ service

MrAlucardDante avatar Aug 20 '24 11:08 MrAlucardDante