This is an automated email from the ASF dual-hosted git repository.

fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 25285bd2cad6 test(jbang): export - add junit groups based on runtime
25285bd2cad6 is described below

commit 25285bd2cad63376c45931d155cf0e2bd42825c1
Author: Andrej Vano <[email protected]>
AuthorDate: Mon Oct 13 11:34:10 2025 +0200

    test(jbang): export - add junit groups based on runtime
---
 dsl/camel-jbang/camel-jbang-it/pom.xml                    | 12 +++++++-----
 .../java/org/apache/camel/dsl/jbang/it/ExportITCase.java  | 15 +++++++++++++--
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-it/pom.xml 
b/dsl/camel-jbang/camel-jbang-it/pom.xml
index 79827e490bdc..b7f1f3b59db7 100644
--- a/dsl/camel-jbang/camel-jbang-it/pom.xml
+++ b/dsl/camel-jbang/camel-jbang-it/pom.xml
@@ -223,12 +223,13 @@
                 </property>
             </activation>
             <properties>
-                <maven.test.skip>false</maven.test.skip>
-                <shared.data.folder>target/data</shared.data.folder>
                 <cli.jbang.version>${project.version}</cli.jbang.version>
                 <cli.jbang.repo>apache/camel</cli.jbang.repo>
                 <cli.jbang.branch>main</cli.jbang.branch>
                 <cli.jbang.docker.file/>
+                <export.runtime/>
+                <maven.test.skip>false</maven.test.skip>
+                <shared.data.folder>target/data</shared.data.folder>
                 
<shared.maven.local.repo>${settings.localRepository}</shared.maven.local.repo>
                 <x11.display>:0</x11.display>
             </properties>
@@ -264,10 +265,10 @@
                             </execution>
                         </executions>
                         <configuration>
-                            
<rerunFailingTestsCount>${surefire.rerunFailingTestsCount}</rerunFailingTestsCount>
-                            <forkCount>1C</forkCount>
                             
<argLine>-DforkNumber=${surefire.forkNumber}</argLine>
-                            <threadCountClasses>1</threadCountClasses>
+                            <forkCount>1C</forkCount>
+                            <groups>${export.runtime}</groups>
+                            
<rerunFailingTestsCount>${surefire.rerunFailingTestsCount}</rerunFailingTestsCount>
                             <systemPropertyVariables>
                                 
<cli.service.data.folder>${shared.data.folder}</cli.service.data.folder>
                                 
<cli.service.version>${cli.jbang.version}</cli.service.version>
@@ -278,6 +279,7 @@
                                 
<jbang.it.assert.wait.timeout>300</jbang.it.assert.wait.timeout>
                                 <DISPLAY>${x11.display}</DISPLAY>
                             </systemPropertyVariables>
+                            <threadCountClasses>1</threadCountClasses>
                         </configuration>
                     </plugin>
                 </plugins>
diff --git 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/ExportITCase.java
 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/ExportITCase.java
index c254bee87d83..4d645fa55177 100644
--- 
a/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/ExportITCase.java
+++ 
b/dsl/camel-jbang/camel-jbang-it/src/test/java/org/apache/camel/dsl/jbang/it/ExportITCase.java
@@ -20,11 +20,13 @@ import java.io.IOException;
 
 import org.apache.camel.dsl.jbang.it.support.JBangTestSupport;
 import org.junit.jupiter.api.Assumptions;
+import org.junit.jupiter.api.Tag;
 import org.junit.jupiter.api.Test;
 
 public class ExportITCase extends JBangTestSupport {
 
     @Test
+    @Tag("spring-boot")
     public void testExportSB() throws IOException {
         execute(String.format("export --runtime=spring-boot 
--gav=com.foo:acme:1.0-SNAPSHOT --directory=%s",
                 mountPoint()));
@@ -35,6 +37,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("quarkus")
     public void testExportQuarkus() throws IOException {
         execute(String.format("export --runtime=quarkus 
--gav=com.foo:acme:1.0-SNAPSHOT --directory=%s",
                 mountPoint()));
@@ -45,6 +48,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("main")
     public void testExportMain() throws IOException {
         execute(String.format("export --runtime=camel-main 
--gav=com.foo:acme:1.0-SNAPSHOT --directory=%s",
                 mountPoint()));
@@ -55,6 +59,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("spring-boot")
     public void testExportFile() throws IOException {
         copyResourceInDataFolder(TestResources.DIR_ROUTE);
         copyResourceInDataFolder(TestResources.SERVER_ROUTE);
@@ -66,6 +71,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("spring-boot")
     public void testExportGradle() {
         execute(String.format(
                 "export --build-tool=gradle --runtime=spring-boot 
--gav=com.foo:acme:1.0-SNAPSHOT --directory=%s",
@@ -76,6 +82,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("quarkus")
     public void testExportProperties() throws IOException {
         newFileInDataFolder("application.properties", 
"camel.jbang.runtime=quarkus");
         execInContainer(String.format("mv %s/application.properties .", 
mountPoint()));
@@ -85,11 +92,11 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("main")
     public void testExportWithAgent() throws IOException {
         newFileInDataFolder("application.properties",
                 
"camel.jbang.dependencies=camel:opentelemetry,agent:io.opentelemetry.javaagent:opentelemetry-javaagent:1.31.0\n"
-                                                      +
-                                                      
"camel.opentelemetry.enabled=true");
+                                                      + 
"camel.opentelemetry.enabled=true");
         execInContainer(String.format("mv %s/application.properties .", 
mountPoint()));
         execute(String.format(
                 "export --runtime=camel-main --gav=com.foo:acme:1.0-SNAPSHOT 
--directory=%s", mountPoint()));
@@ -97,6 +104,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("quarkus")
     public void testExportWithJMXManagement() throws IOException {
         execute(String.format(
                 "export --runtime=quarkus --gav=com.foo:acme:1.0-SNAPSHOT 
--dep=camel:management --directory=%s",
@@ -105,6 +113,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("quarkus")
     public void testExportWithCliConnector() throws IOException {
         execute(String.format(
                 "export --runtime=quarkus --gav=com.foo:acme:1.0-SNAPSHOT 
--dep=camel:cli-connector --directory=%s",
@@ -113,6 +122,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("quarkus")
     public void testExportWithCamelConfig() throws IOException {
         execute("config set gav=com.foo:acme:1.0-SNAPSHOT");
         execute("config set runtime=quarkus");
@@ -122,6 +132,7 @@ public class ExportITCase extends JBangTestSupport {
     }
 
     @Test
+    @Tag("quarkus")
     public void testExportWithCustomQuarkusBuild() throws IOException {
         String quarkusGid = System.getProperty("quarkusGroupId");
         String quarkusVersion = System.getProperty("quarkusVersion");

Reply via email to