diff --git a/dist/testng-integration.xml b/dist/testng-integration.xml
deleted file mode 100644
index 86d7187deb6..00000000000
--- a/dist/testng-integration.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/dist/testng-unit.xml b/dist/testng-unit.xml
deleted file mode 100644
index 136f8aa1e9b..00000000000
--- a/dist/testng-unit.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
diff --git a/pom.xml b/pom.xml
index 4b0a8ebcaf4..1269a50ba50 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,25 +23,34 @@
- Test JARs of some modules are created, installed/deployed and used downstream (search for test-jar).
VARIOUS MVN COMMANDS (with rough times on average notebook)
+ Note: Javadoc takes long time but it's only part of the "dist" profile (active by default).
+ Hence, " -Dmaven.javadoc.skip" is not necessary with "-P -dist".
- Quick run without any tests (~6m):
- mvn clean install -P -dist -DskipTests -Dmaven.javadoc.skip -Dcheckstyle.skip
+ Quick developer's run without any tests, skipping distribution (~6m):
+ mvn clean install -P -dist -DskipTests -Dcheckstyle.skip
"Quick" build with unit tests only and checkstyle (~30m):
- mvn clean install -P -dist -DskipITs -Dmaven.javadoc.skip
+ mvn clean install -P -dist -DskipITs
- "Quick" build with smaller integration test (~1h20m):
- mvn clean install -P -dist -DintegrationTestSuite=fast -Dmaven.javadoc.skip
+ "Quick" build with smaller/faster set of integration test (~1h20m):
+ mvn clean install -P -dist -DintegrationTestSuite=fast
- Running tests of a selected module (-pl) with output to stdout (don't use stdout for complete build, it's too much):
- mvn clean install -DredirectTestOutputToFile=false -pl model/model-intest
+ Default build - creates distribution package, runs all tests except "extra" tests ():
+ mvn clean install
+
+ Extra test run with custom JVM args (we have 16g on CI server, but it works without args too),
+ runs just under 900 tests, skips distribution and any common unit/IT tests (~1h50m):
+ mvn clean install -P extratest,-dist -Dsurefire.args="-Xmx8g" -Dfailsafe.args="-Xmx8g -Duser.language=en"
+
+ Extra test run for a single module, -D property matches the module in -pl:
+ mvn clean install -DskipConnTests=false -pl testing/conntest
- Long test run (with 16g on CI server, but this should work too - isn't Xmx even unnecessary?),
- runs just under 900 tests (~1h50m):
- mvn -P tomcat,extratest clean install -Dsurefire.args="-Xmx8g" -Dfailsafe.args="-Xmx8g -Duser.language=en"
+ Full build with extra tests for a single module, "-DskipTests" suppresses other default tests:
+ mvn clean install -P -dist -DskipTests -DskipStoryTests=false
+ See "extratest" profile in testing/pom.xml for all individual properties enabling extra tests.
- Comprehensive quick build/dist with normally excluded modules including checkstyle, but no tests/javadoc (~13m):
- mvn clean install -P dist,extratest,conntest,schrodinger -DskipTests -Dmaven.javadoc.skip
+ Running unit+IT tests of a selected module (-pl) with output to stdout:
+ mvn clean install -DredirectTestOutputToFile=false -pl model/model-intest
-->
com.evolveum.midpoint
@@ -2030,6 +2039,18 @@
+
+
+ extratest
+
+ true
+
+
+
jdk-11
diff --git a/testing/conntest/pom.xml b/testing/conntest/pom.xml
index f4055defe2d..e4f976f748f 100644
--- a/testing/conntest/pom.xml
+++ b/testing/conntest/pom.xml
@@ -19,11 +19,6 @@
midPoint Testing - Resource Connection Tests
-
-
- true
-
-
com.evolveum.midpoint.infra
diff --git a/testing/longtest/pom.xml b/testing/longtest/pom.xml
index b8b3fdd882a..a3923502416 100644
--- a/testing/longtest/pom.xml
+++ b/testing/longtest/pom.xml
@@ -19,11 +19,6 @@
midPoint Testing - Long Tests
-
-
- true
-
-
com.evolveum.midpoint.infra
diff --git a/testing/pom.xml b/testing/pom.xml
index 20944cf37cd..69a13030fc0 100644
--- a/testing/pom.xml
+++ b/testing/pom.xml
@@ -44,5 +44,29 @@
true
true
+
+
+ true
+ true
+ true
+ true
+ true
+
+ true
+
+
+
+ extratest
+
+ true
+ false
+ false
+ false
+ false
+ false
+
+
+
+
diff --git a/testing/rest/pom.xml b/testing/rest/pom.xml
index 57402cdcf02..1e9fafbb2ad 100644
--- a/testing/rest/pom.xml
+++ b/testing/rest/pom.xml
@@ -19,11 +19,6 @@
midPoint Testing - REST API
-
-
- true
-
-
com.evolveum.midpoint.infra
diff --git a/testing/samples-test/pom.xml b/testing/samples-test/pom.xml
index 45cb5c5df56..e651532ab41 100644
--- a/testing/samples-test/pom.xml
+++ b/testing/samples-test/pom.xml
@@ -19,11 +19,6 @@
midPoint Samples - Test
-
-
- true
-
-
diff --git a/testing/schrodingertest/pom.xml b/testing/schrodingertest/pom.xml
index 46185745a09..a7829281c29 100644
--- a/testing/schrodingertest/pom.xml
+++ b/testing/schrodingertest/pom.xml
@@ -28,8 +28,6 @@
-->
../../gui/admin-gui
com.evolveum.midpoint.web.boot.MidPointSpringApplication
-
- true
8180
0.0.0.0