diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-06-28 10:29:50 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-06-28 10:29:50 +0200 |
commit | c43f9764b2132ce54a491c1daeeafe6aa4851ef5 (patch) | |
tree | 3f900f37b612fffd11a6069dd814f16474957053 /pom.xml | |
parent | 7eb6db5c837db22055b51988031920599a7e7270 (diff) | |
download | moa-zs-c43f9764b2132ce54a491c1daeeafe6aa4851ef5.tar.gz moa-zs-c43f9764b2132ce54a491c1daeeafe6aa4851ef5.tar.bz2 moa-zs-c43f9764b2132ce54a491c1daeeafe6aa4851ef5.zip |
Separate Test Suite into Unit- And Integration Tests
Per default, integration tests are excluded from build. They can be
included with the `-P integration-test` argument.
- Pom: Add maven profile for integration tests.
- Rename integration tests (add `IT` prefix).
- Move Resources into IT* folders.
- Add MsgClientTest to test suite and add assertions to each test case.
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -43,6 +43,7 @@ <jacoco.version>0.8.3</jacoco.version> <egovutils.version>2.0.7-snapshot</egovutils.version> <eaaf-components.version>1.0.7</eaaf-components.version> + <maven-surefire-plugin.version>2.22.1</maven-surefire-plugin.version> <mzs.ns>http://reference.e-government.gv.at/namespace/zustellung/mzs/app2mzs#</mzs.ns> <mzs.p.ns>http://reference.e-government.gv.at/namespace/zustellung/mzs/persondata#</mzs.p.ns> @@ -59,6 +60,23 @@ <tnvz.package>at.gv.zustellung.tnvz.xsd</tnvz.package> </properties> + <profiles> + <profile> + <id>dev</id> + <activation><activeByDefault>true</activeByDefault></activation> + <properties> + <exclude-test-pattern>**/IT*Test.java</exclude-test-pattern> + </properties> + </profile> + <profile> + <id>integration-test</id> + <properties> + <exclude-test-pattern></exclude-test-pattern> + </properties> + </profile> + </profiles> + + <dependencies> <!-- spring-boot --> <dependency> @@ -223,6 +241,18 @@ </execution> </executions> </plugin> + <!-- tests --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>${maven-surefire-plugin.version}</version> + <configuration> + <excludes> + <exclude>${exclude-test-pattern}</exclude> + </excludes> + </configuration> + </plugin> + </plugins> </build> </project> |