Skip to content

Commit

Permalink
Updated Pom file to use failsafe to run Integration Tests (They are s…
Browse files Browse the repository at this point in the history
…till disabled by default)
  • Loading branch information
ipeteclarke committed May 30, 2024
1 parent eedd523 commit f35513b
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
1 change: 1 addition & 0 deletions nifi-iotics-hostservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<groupId>smartrics.iotics.nifi</groupId>
<artifactId>nifi-iotics</artifactId>
<version>1.1-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>nifi-iotics-hostservice</artifactId>
Expand Down
1 change: 1 addition & 0 deletions nifi-iotics-nar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<groupId>smartrics.iotics.nifi</groupId>
<artifactId>nifi-iotics</artifactId>
<version>1.1-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>nifi-iotics-nar</artifactId>
Expand Down
29 changes: 29 additions & 0 deletions nifi-iotics-processors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<groupId>smartrics.iotics.nifi</groupId>
<artifactId>nifi-iotics</artifactId>
<version>1.1-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>nifi-iotics-processors</artifactId>
Expand All @@ -33,6 +34,34 @@
<maven-test-plugins.version>3.2.5</maven-test-plugins.version>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>add-integration-test-source-as-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/integration/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.nifi</groupId>
Expand Down
40 changes: 39 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<google.gson.version>2.10.1</google.gson.version>
<google.guava.version>33.1.0-android</google.guava.version>
<skipITs>true</skipITs>
</properties>

<licenses>
Expand Down Expand Up @@ -75,7 +76,27 @@
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
</plugins> <pluginManagement>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.6.0</version>
<executions>
<execution>
<id>add-integration-test-source-as-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>src/integrationTest/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- https://mvnrepository.com/artifact/org.codehaus.mojo/versions-maven-plugin -->
<plugin>
Expand All @@ -99,6 +120,23 @@
<reuseForks>true</reuseForks>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<testSourceDirectory>src/integration/java</testSourceDirectory>
<skipITs>${skipITs}</skipITs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit f35513b

Please sign in to comment.