From c43f9764b2132ce54a491c1daeeafe6aa4851ef5 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Fri, 28 Jun 2019 10:29:50 +0200 Subject: 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. --- readme.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 7572af1..c64be93 100644 --- a/readme.md +++ b/readme.md @@ -53,10 +53,29 @@ cp /eaaf_modules/eaaf_module_moa-sig/rep ## Compile & Test -Requirements: openJDK 12 (OpenJDK 11 has an unfixed bug [1] that prevents the completion of TLS handshakes.) +### Run Unit Tests +Requirements: +- openJDK 12 (OpenJDK 11 has an unfixed bug [1] that prevents the completion of TLS handshakes.) + +Command: ``` mvn test ``` -[1] https://bugs.openjdk.java.net/browse/JDK-8214098 \ No newline at end of file +### Run Integration Tests + +Integration tests start with the prefix `IT`. + +Requirements: +- OpenJDK 12 +- Some integration tests have additional requirements (e.g. external services). Ensure that these requirements are met as well. Check out the source code for further details. + +Command: +``` +mvn test -P integration-test +``` + +# Footnotes + +[1] https://bugs.openjdk.java.net/browse/JDK-8214098 -- cgit v1.2.3