diff options
author | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-04-16 07:46:53 +0200 |
---|---|---|
committer | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-04-16 13:38:38 +0200 |
commit | 4408df5175c3e759f93afceb597ea30af752abb4 (patch) | |
tree | 0de62af618a3b29396dd8535c3989b43e29ec438 /netconfsimulator/pom.xml | |
parent | 7e807931985b8cc2f464c880599dfa0804088e0d (diff) |
Move netconf integration tests to separate catalog
Issue-ID: INT-1517
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: I814439a6b0ab7fbe08253c7bd9639bde3320ece2
Diffstat (limited to 'netconfsimulator/pom.xml')
-rw-r--r-- | netconfsimulator/pom.xml | 51 |
1 files changed, 32 insertions, 19 deletions
diff --git a/netconfsimulator/pom.xml b/netconfsimulator/pom.xml index d03c650..b000f1c 100644 --- a/netconfsimulator/pom.xml +++ b/netconfsimulator/pom.xml @@ -51,8 +51,10 @@ <netopeer-saver-source-dir>${project.basedir}/netopeer-change-saver-native</netopeer-saver-source-dir> <netopeer-saver-build-dir>${project.build.directory}/cmake</netopeer-saver-build-dir> <netopeer-saver-executable-dir>${netopeer-saver-build-dir}/bin</netopeer-saver-executable-dir> - <skipITs>true</skipITs> <proxy>""</proxy> + <skip-integration-tests>true</skip-integration-tests> + <skip-unit-tests>false</skip-unit-tests> + <project.build.integrationTestSourceDirectory>${project.basedir}/src/it/java</project.build.integrationTestSourceDirectory> </properties> <dependencies> @@ -210,15 +212,8 @@ </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> - <version>2.19</version> - <dependencies> - <dependency> - <groupId>org.junit.platform</groupId> - <artifactId>junit-platform-surefire-provider</artifactId> - <version>1.1.1</version> - </dependency> - </dependencies> <configuration> + <skipTests>${skip-unit-tests}</skipTests> <detail>true</detail> <printSummary>true</printSummary> <useSystemClassLoader>false</useSystemClassLoader> @@ -227,20 +222,31 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> - <version>2.19.1</version> <configuration> - <skipITs>${skipITs}</skipITs> + <testSourceDirectory>${project.build.integrationTestSourceDirectory}</testSourceDirectory> + <skipITs>${skip-integration-tests}</skipITs> </configuration> - <executions> - <execution> - <goals> - <goal>integration-test</goal> - <goal>verify</goal> - </goals> - </execution> - </executions> </plugin> <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.1.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>${project.build.integrationTestSourceDirectory}</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <executions> @@ -266,6 +272,13 @@ </build> <profiles> <profile> + <id>integration</id> + <properties> + <skip-integration-tests>false</skip-integration-tests> + <skip-unit-tests>true</skip-unit-tests> + </properties> + </profile> + <profile> <id>docker</id> <activation> <activeByDefault>false</activeByDefault> |