2
       <plugin>
            <groupId>net.masterthought</groupId>
            <artifactId>maven-cucumber-reporting</artifactId>
            <version>${masterThougth.version}</version>
            <executions>
                <execution>
                    <id>execution</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <checkBuildResult>false</checkBuildResult>
                        <projectName>${project.artifactId}</projectName>
                        <buildNumber>${project.build}</buildNumber>
                        <parallelTesting>true</parallelTesting>
                        <outputDirectory>target/cucumber-report/</outputDirectory>
                        <cucumberOutput>target/cucumber-report/</cucumberOutput>
                    </configuration>
                </execution>
            </executions>
        </plugin>

I am using above maven cucumber plugin to generate HTML test report.How i can generate the cucumber report(folder) with different time stamp for different runs.

Krishnan Mahadevan
  • 14,121
  • 6
  • 34
  • 66
jena84
  • 311
  • 1
  • 3
  • 20

1 Answers1

3

You can try the following code.

  <properties>
     <timestamp>${maven.build.timestamp}</timestamp>
     <maven.build.timestamp.format>yyyy_MM_dd_HH_mm</maven.build.timestamp.format>
  <properties>

    <plugin>
        <groupId>net.masterthought</groupId>
        <artifactId>maven-cucumber-reporting</artifactId>
        <version>${masterThougth.version}</version>
        <executions>
            <execution>
                <id>execution</id>
                <phase>verify</phase>
                <goals>
                    <goal>generate</goal>
                </goals>
                <configuration>
                    <checkBuildResult>false</checkBuildResult>
                    <projectName>${project.artifactId}</projectName>
                    <buildNumber>${project.build}</buildNumber>
                    <parallelTesting>true</parallelTesting>
                    <outputDirectory>target/cucumber-report/${timestamp}</outputDirectory>
                    <cucumberOutput>target/cucumber-report/</cucumberOutput>
                </configuration>
            </execution>
        </executions>
    </plugin>
Murthi
  • 5,299
  • 1
  • 10
  • 15