From d1c50e3fb4e09f4b9dbab5fbb3c85cfa71cea338 Mon Sep 17 00:00:00 2001 From: AirQuick Date: Thu, 30 Nov 2023 20:04:47 +0900 Subject: [PATCH 1/3] feat(ant): xspec.force.focus=#none (#1814) --- .commitlintrc.json | 3 +- CONTRIBUTING.md | 1 + .../expected/query/force-focus_none-junit.xml | 17 +++ .../query/force-focus_none-result.html | 139 ++++++++++++++++++ .../query/force-focus_none-result.xml | 59 ++++++++ .../schematron/force-focus_none-junit.xml | 17 +++ .../schematron/force-focus_none-result.html | 138 +++++++++++++++++ .../schematron/force-focus_none-result.xml | 59 ++++++++ .../stylesheet/force-focus_none-junit.xml | 17 +++ .../stylesheet/force-focus_none-result.html | 138 +++++++++++++++++ .../stylesheet/force-focus_none-result.xml | 58 ++++++++ .../cases/focus-without-pending.xspec | 2 +- test/end-to-end/cases/force-focus_none.xspec | 11 ++ 13 files changed, 657 insertions(+), 2 deletions(-) create mode 100644 test/end-to-end/cases/expected/query/force-focus_none-junit.xml create mode 100644 test/end-to-end/cases/expected/query/force-focus_none-result.html create mode 100644 test/end-to-end/cases/expected/query/force-focus_none-result.xml create mode 100644 test/end-to-end/cases/expected/schematron/force-focus_none-junit.xml create mode 100644 test/end-to-end/cases/expected/schematron/force-focus_none-result.html create mode 100644 test/end-to-end/cases/expected/schematron/force-focus_none-result.xml create mode 100644 test/end-to-end/cases/expected/stylesheet/force-focus_none-junit.xml create mode 100644 test/end-to-end/cases/expected/stylesheet/force-focus_none-result.html create mode 100644 test/end-to-end/cases/expected/stylesheet/force-focus_none-result.xml create mode 100644 test/end-to-end/cases/force-focus_none.xspec diff --git a/.commitlintrc.json b/.commitlintrc.json index 8472ff91b..eafa09b13 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -16,7 +16,8 @@ "xproc", "schema", "maven", - "cli" + "cli", + "ant" ] ] } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3374f7967..459b4b8e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,6 +65,7 @@ You are also encouraged to use a scope to highlight which functionality is affec | `schema` | Schema for .xspec files | | `maven` | Maven | | `cli` | `bin/xspec.*` | +| `ant` | Ant | Note that type is mandatory and scope is optional and both values should be written in lower case. diff --git a/test/end-to-end/cases/expected/query/force-focus_none-junit.xml b/test/end-to-end/cases/expected/query/force-focus_none-junit.xml new file mode 100644 index 000000000..366c77564 --- /dev/null +++ b/test/end-to-end/cases/expected/query/force-focus_none-junit.xml @@ -0,0 +1,17 @@ + + + + + + Expecting: $t:result instance of xs:string + + + + Expecting: $t:result instance of xs:string + + + diff --git a/test/end-to-end/cases/expected/query/force-focus_none-result.html b/test/end-to-end/cases/expected/query/force-focus_none-result.html new file mode 100644 index 000000000..0339c65e4 --- /dev/null +++ b/test/end-to-end/cases/expected/query/force-focus_none-result.html @@ -0,0 +1,139 @@ + + + + Test Report for x-urn:test:do-nothing (passed: 2 / pending: 0 / failed: 2 / total: 4) + + + +

Test Report

+

Query: x-urn:test:do-nothing

+

Query-at: do-nothing.xqm

+

XSpec: force-focus_none.xspec

+

Tested: 1 January 2000 at 00:00

+

Contents

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
passed: 2pending: 0failed: 2total: 4
Test @focus2024
+
+

Test @focuspassed: 2 / pending: 0 / failed: 2 / total: 4

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test @focuspassed: 2 / pending: 0 / failed: 2 / total: 4
an unfocused Success scenario must be Pendingpassed: 1 / pending: 0 / failed: 0 / total: 1
it would return Success if it were not PendingSuccess
an unfocused Failure scenario must be Pendingpassed: 0 / pending: 0 / failed: 1 / total: 1
it would return Failure if it were not PendingFailure
a focused Success scenariopassed: 1 / pending: 0 / failed: 0 / total: 1
must execute the test and return SuccessSuccess
a focused Failure scenariopassed: 0 / pending: 0 / failed: 1 / total: 1
must execute the test and return FailureFailure
+
+

Test @focus an unfocused Failure scenario must be Pending

+
+

it would return Failure if it were not Pending

+ + + + + + + + + + + + + + +
ResultExpecting
+
9
+
+
$t:result instance of xs:string
+
+
+
+
+

Test @focus a focused Failure scenario

+
+

must execute the test and return Failure

+ + + + + + + + + + + + + + +
ResultExpecting
+
9
+
+
$t:result instance of xs:string
+
+
+
+
+ + \ No newline at end of file diff --git a/test/end-to-end/cases/expected/query/force-focus_none-result.xml b/test/end-to-end/cases/expected/query/force-focus_none-result.xml new file mode 100644 index 000000000..c4121624b --- /dev/null +++ b/test/end-to-end/cases/expected/query/force-focus_none-result.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/end-to-end/cases/expected/schematron/force-focus_none-junit.xml b/test/end-to-end/cases/expected/schematron/force-focus_none-junit.xml new file mode 100644 index 000000000..366c77564 --- /dev/null +++ b/test/end-to-end/cases/expected/schematron/force-focus_none-junit.xml @@ -0,0 +1,17 @@ + + + + + + Expecting: $t:result instance of xs:string + + + + Expecting: $t:result instance of xs:string + + + diff --git a/test/end-to-end/cases/expected/schematron/force-focus_none-result.html b/test/end-to-end/cases/expected/schematron/force-focus_none-result.html new file mode 100644 index 000000000..81958d978 --- /dev/null +++ b/test/end-to-end/cases/expected/schematron/force-focus_none-result.html @@ -0,0 +1,138 @@ + + + + Test Report for do-nothing.sch (passed: 2 / pending: 0 / failed: 2 / total: 4) + + + +

Test Report

+

Schematron: do-nothing.sch

+

XSpec: force-focus_none.xspec

+

Tested: 1 January 2000 at 00:00

+

Contents

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
passed: 2pending: 0failed: 2total: 4
Test @focus2024
+
+

Test @focuspassed: 2 / pending: 0 / failed: 2 / total: 4

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test @focuspassed: 2 / pending: 0 / failed: 2 / total: 4
an unfocused Success scenario must be Pendingpassed: 1 / pending: 0 / failed: 0 / total: 1
it would return Success if it were not PendingSuccess
an unfocused Failure scenario must be Pendingpassed: 0 / pending: 0 / failed: 1 / total: 1
it would return Failure if it were not PendingFailure
a focused Success scenariopassed: 1 / pending: 0 / failed: 0 / total: 1
must execute the test and return SuccessSuccess
a focused Failure scenariopassed: 0 / pending: 0 / failed: 1 / total: 1
must execute the test and return FailureFailure
+
+

Test @focus an unfocused Failure scenario must be Pending

+
+

it would return Failure if it were not Pending

+ + + + + + + + + + + + + + +
ResultExpecting
+
9
+
+
$t:result instance of xs:string
+
+
+
+
+

Test @focus a focused Failure scenario

+
+

must execute the test and return Failure

+ + + + + + + + + + + + + + +
ResultExpecting
+
9
+
+
$t:result instance of xs:string
+
+
+
+
+ + \ No newline at end of file diff --git a/test/end-to-end/cases/expected/schematron/force-focus_none-result.xml b/test/end-to-end/cases/expected/schematron/force-focus_none-result.xml new file mode 100644 index 000000000..1f02a71fb --- /dev/null +++ b/test/end-to-end/cases/expected/schematron/force-focus_none-result.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/end-to-end/cases/expected/stylesheet/force-focus_none-junit.xml b/test/end-to-end/cases/expected/stylesheet/force-focus_none-junit.xml new file mode 100644 index 000000000..366c77564 --- /dev/null +++ b/test/end-to-end/cases/expected/stylesheet/force-focus_none-junit.xml @@ -0,0 +1,17 @@ + + + + + + Expecting: $t:result instance of xs:string + + + + Expecting: $t:result instance of xs:string + + + diff --git a/test/end-to-end/cases/expected/stylesheet/force-focus_none-result.html b/test/end-to-end/cases/expected/stylesheet/force-focus_none-result.html new file mode 100644 index 000000000..262cd998c --- /dev/null +++ b/test/end-to-end/cases/expected/stylesheet/force-focus_none-result.html @@ -0,0 +1,138 @@ + + + + Test Report for do-nothing.xsl (passed: 2 / pending: 0 / failed: 2 / total: 4) + + + +

Test Report

+

Stylesheet: do-nothing.xsl

+

XSpec: force-focus_none.xspec

+

Tested: 1 January 2000 at 00:00

+

Contents

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
passed: 2pending: 0failed: 2total: 4
Test @focus2024
+
+

Test @focuspassed: 2 / pending: 0 / failed: 2 / total: 4

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test @focuspassed: 2 / pending: 0 / failed: 2 / total: 4
an unfocused Success scenario must be Pendingpassed: 1 / pending: 0 / failed: 0 / total: 1
it would return Success if it were not PendingSuccess
an unfocused Failure scenario must be Pendingpassed: 0 / pending: 0 / failed: 1 / total: 1
it would return Failure if it were not PendingFailure
a focused Success scenariopassed: 1 / pending: 0 / failed: 0 / total: 1
must execute the test and return SuccessSuccess
a focused Failure scenariopassed: 0 / pending: 0 / failed: 1 / total: 1
must execute the test and return FailureFailure
+
+

Test @focus an unfocused Failure scenario must be Pending

+
+

it would return Failure if it were not Pending

+ + + + + + + + + + + + + + +
ResultExpecting
+
9
+
+
$t:result instance of xs:string
+
+
+
+
+

Test @focus a focused Failure scenario

+
+

must execute the test and return Failure

+ + + + + + + + + + + + + + +
ResultExpecting
+
9
+
+
$t:result instance of xs:string
+
+
+
+
+ + \ No newline at end of file diff --git a/test/end-to-end/cases/expected/stylesheet/force-focus_none-result.xml b/test/end-to-end/cases/expected/stylesheet/force-focus_none-result.xml new file mode 100644 index 000000000..556cc8903 --- /dev/null +++ b/test/end-to-end/cases/expected/stylesheet/force-focus_none-result.xml @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/end-to-end/cases/focus-without-pending.xspec b/test/end-to-end/cases/focus-without-pending.xspec index c2e513f00..9c3aa7cbe 100644 --- a/test/end-to-end/cases/focus-without-pending.xspec +++ b/test/end-to-end/cases/focus-without-pending.xspec @@ -38,7 +38,7 @@ diff --git a/test/end-to-end/cases/force-focus_none.xspec b/test/end-to-end/cases/force-focus_none.xspec new file mode 100644 index 000000000..2c1621ef9 --- /dev/null +++ b/test/end-to-end/cases/force-focus_none.xspec @@ -0,0 +1,11 @@ + + + + + + + + From 86386169eb733c8ccdca733295e946708d616881 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:18:17 +0000 Subject: [PATCH 2/3] ci(deps): bump actions/setup-java from 3 to 4 (#1817) --- .github/workflows/maven-deploy.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-deploy.yml b/.github/workflows/maven-deploy.yml index 8a3724346..114aa2d20 100644 --- a/.github/workflows/maven-deploy.yml +++ b/.github/workflows/maven-deploy.yml @@ -17,7 +17,7 @@ jobs: - run: gpg --version - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: 8 distribution: temurin diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e35f23af2..85e88a86b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,7 +34,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} distribution: temurin From e09c69686c1f4069bb98986b9d4f03941c6cb188 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:24:10 -0500 Subject: [PATCH 3/3] build(deps): bump org.apache.maven.plugins:maven-javadoc-plugin (#1820) Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.6.2 to 3.6.3. - [Release notes](https://github.com/apache/maven-javadoc-plugin/releases) - [Commits](https://github.com/apache/maven-javadoc-plugin/compare/maven-javadoc-plugin-3.6.2...maven-javadoc-plugin-3.6.3) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-javadoc-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0cb9fc68d..0cfe6caf4 100644 --- a/pom.xml +++ b/pom.xml @@ -214,7 +214,7 @@ maven-javadoc-plugin - 3.6.2 + 3.6.3 true