Skip to content

Commit

Permalink
Merge pull request #466 from boozallen/447-generate-consolidated-cucu…
Browse files Browse the repository at this point in the history
…mber-report

#447 Generate aggregated Cucumber report
  • Loading branch information
habibimoiz authored Nov 14, 2024
2 parents 3f45f21 + 1d4a25f commit 127164e
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
73 changes: 73 additions & 0 deletions cucumber-report-aggregator/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.boozallen.aissemble</groupId>
<artifactId>aissemble-root</artifactId>
<version>1.10.0-SNAPSHOT</version>
</parent>

<artifactId>cucumber-report-aggregator</artifactId>

<name>aiSSEMBLE::Cucumber Report Aggregator</name>
<description>Consolidates all Cucumber test results across the project modules into an aggregated report for streamlined review of the test coverage.</description>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-cucumber-reports</id>
<phase>verify</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/cucumber-reports-jsons/</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/../../</directory>
<includes>
<include>**/cucumber.json</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>aiSSEMBLE</projectName>
<skipEmptyJSONFiles>true</skipEmptyJSONFiles>
<outputDirectory>${project.build.directory}/../target/cucumber-reports</outputDirectory>
<inputDirectory>${project.build.directory}/../target/cucumber-reports-jsons</inputDirectory>
<jsonFiles>
<param>**/cucumber.json</param>
</jsonFiles>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
<module>foundation</module>
<module>extensions</module>
<module>test</module>
<!--We are relying on the sequential build from Maven; if we ever use parallel builds, we would need to
ensure the report aggregator depends on all other modules-->
<module>cucumber-report-aggregator</module>
</modules>

<scm>
Expand Down

0 comments on commit 127164e

Please sign in to comment.