Skip to content

Commit 5c1e718

Browse files
authored
Merge pull request #48 from evolvedbinary/6.x.x/hotfix/surefire-run-all-tests
[6.x.x] Address test issues
2 parents bed21d7 + 23f4110 commit 5c1e718

File tree

5 files changed

+30
-28
lines changed

5 files changed

+30
-28
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,11 @@ jobs:
540540
- store_test_results:
541541
path: ~/test-results
542542
- when:
543-
# NOTE(AR) only persist the workspace when it is `large` as we then reuse it for the `code-coverage` jobs
543+
# NOTE(AR) only persist the workspace when we are on the `main` branch, and it has a `large` compute, as we then reuse it for the `code-coverage` jobs
544544
condition:
545545
and:
546546
- equal: [ large, << parameters.compute_size >> ]
547+
- equal: [ main, << pipeline.git.branch >> ]
547548
steps:
548549
- persist_project:
549550
compute_size: << parameters.compute_size >>

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ if [ "${TARGET}" == "test" ]; then
125125
fi
126126

127127
if [ "${TARGET}" == "site" ]; then
128-
CMD="${BASE_CMD} clean test -Ddependency-check.skip=true"
128+
CMD="${BASE_CMD} clean site -Ddependency-check.skip=true"
129129
$CMD
130130
exit 0;
131131
fi

elemental-parent/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@
362362
<plugin>
363363
<groupId>org.apache.maven.plugins</groupId>
364364
<artifactId>maven-surefire-plugin</artifactId>
365-
<version>3.5.3</version>
365+
<!-- NOTE(AR) Rolled back to version 3.5.2 due to https://github.com/apache/maven-surefire/issues/2634#issuecomment-3092462501 -->
366+
<version>3.5.2</version>
366367
<dependencies>
367368
<dependency>
368369
<groupId>org.junit.platform</groupId>

exist-core/src/test/xquery/fn.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function fnt:doc-available-remote($uri as xs:string) {
9191

9292
declare
9393
%test:args("\adamretter")
94-
%test:assertError("FODC0005")
94+
%test:assertFalse
9595
function fnt:doc-available-invalid-uri($uri as xs:string) {
9696
fn:doc-available($uri)
9797
};

exist-core/src/test/xquery/xquery3/transform/fnTransform71.xqm

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ module namespace testTransform="http://exist-db.org/xquery/test/function_transfo
2525

2626
declare namespace test="http://exist-db.org/xquery/xqsuite";
2727

28-
declare variable $testTransform:transform-71-xsl := document {
28+
declare variable $testTransform:transform-71-xsl := "
2929
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
30-
xmlns:xs='http://www.w3.org/2001/XMLSchema'
31-
xmlns:chrono='http://chronology.com/' version='2.0'>
32-
<xsl:import-schema>
33-
<xs:schema targetNamespace='http://chronology.com/'>
34-
<xs:simpleType name='c4'>
35-
<xs:restriction base='xs:string'>
36-
<xs:pattern value='....'/>
37-
</xs:restriction>
38-
</xs:simpleType>
39-
</xs:schema>
40-
</xsl:import-schema>
41-
<xsl:template name='main'>
42-
<out><xsl:value-of select="chrono:c4('abcd')"/></out>
43-
</xsl:template>
44-
</xsl:stylesheet> };
30+
xmlns:xs='http://www.w3.org/2001/XMLSchema'
31+
xmlns:chrono='http://chronology.com/' version='2.0'>
32+
<xsl:import-schema>
33+
<xs:schema targetNamespace='http://chronology.com/'>
34+
<xs:simpleType name='c4'>
35+
<xs:restriction base='xs:string'>
36+
<xs:pattern value='....'/>
37+
</xs:restriction>
38+
</xs:simpleType>
39+
</xs:schema>
40+
</xsl:import-schema>
41+
<xsl:template name='main'>
42+
<out><xsl:value-of select=""chrono:c4('abcd')""/></out>
43+
</xsl:template>
44+
</xsl:stylesheet>";
4545

4646
declare
4747
%test:assertError("XTSE1650")
4848
function testTransform:transform-71() {
4949
let $xsl := $testTransform:transform-71-xsl
50-
let $result := fn:transform(map{
51-
"stylesheet-node":$xsl,
52-
"source-node": parse-xml($xsl),
53-
"initial-template": fn:QName('','main'),
54-
"delivery-format" : "serialized",
55-
"requested-properties" : map{fn:QName('http://www.w3.org/1999/XSL/Transform','is-schema-aware'):false()}
56-
})
57-
return $result("output")
50+
let $result := fn:transform(map {
51+
"stylesheet-text": $xsl,
52+
"initial-template": fn:QName('','main'),
53+
"delivery-format": "serialized",
54+
"requested-properties" : map{ fn:QName('http://www.w3.org/1999/XSL/Transform','is-schema-aware'):false() }
55+
})
56+
return
57+
$result("output")
5858
};

0 commit comments

Comments
 (0)