This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new f2ffbd9248 Profile to skip UI tests
f2ffbd9248 is described below
commit f2ffbd9248ae907d0fa72815656a29eda40728db
Author: Andy Seaborne <[email protected]>
AuthorDate: Fri Nov 8 22:01:57 2024 +0000
Profile to skip UI tests
---
jena-fuseki2/jena-fuseki-ui/pom.xml | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/jena-fuseki2/jena-fuseki-ui/pom.xml
b/jena-fuseki2/jena-fuseki-ui/pom.xml
index b6a39ff42c..929c9d8026 100644
--- a/jena-fuseki2/jena-fuseki-ui/pom.xml
+++ b/jena-fuseki2/jena-fuseki-ui/pom.xml
@@ -32,7 +32,26 @@
<node.version>v20.11.0</node.version>
<yarn.version>v1.22.17</yarn.version>
<automatic.module.name>org.apache.jena.fuseki.ui</automatic.module.name>
+
+ <!--
+ Allow for skipping the tests.
+ The test frameworks need various software compoents to
+ be available on the host running maven. This isn't always
+ practical. This property allows the UI to be built on such
machines
+ by skipping the tests.
+ It is set "true" by profile "ui-skip-tests"
+ -->
+ <skip.ui.tests>false</skip.ui.tests>
+
</properties>
+ <profiles>
+ <profile>
+ <id>ui-skip-tests</id>
+ <properties>
+ <skip.ui.tests>true</skip.ui.tests>
+ </properties>
+ </profile>
+ </profiles>
<build>
<plugins>
@@ -98,6 +117,7 @@
</goals>
<phase>test</phase>
<configuration>
+ <skip>${skip.ui.tests}</skip>
<arguments>run test:unit</arguments>
</configuration>
</execution>
@@ -108,7 +128,7 @@
</goals>
<phase>test</phase>
<configuration>
- <testFailureIgnore>false</testFailureIgnore>
+ <skip>${skip.ui.tests}</skip>
<environmentVariables>
<PORT>${org.apache.jena.fuseki.ui.port}</PORT>
<FUSEKI_PORT>${org.apache.jena.fuseki.port}</FUSEKI_PORT>