Skip to content

Commit cf2abac

Browse files
authored
Merge branch 'main' into ogu1208/kotlin-value-class-support
2 parents 7933e30 + 62533bf commit cf2abac

File tree

21 files changed

+327
-52
lines changed

21 files changed

+327
-52
lines changed

.github/actions/main-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
with:
1717
arguments: ${{ inputs.arguments }}
1818
encryptionKey: ${{ inputs.encryptionKey }}
19-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
19+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
2020
if: ${{ always() }}
2121
with:
2222
name: Open Test Reports (${{ github.job }})

.github/codecov.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ coverage:
66
default:
77
threshold: "1"
88
informational: true
9-
patch: off
9+
patch:
10+
default:
11+
target: auto
12+
# Do not allow coverage to decrease
13+
threshold: 0
14+
only_pulls: true
1015

1116
codecov:
1217
max_report_age: off

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
persist-credentials: false
4747
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
48+
uses: github/codeql-action/init@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
4949
with:
5050
languages: ${{ matrix.language }}
5151
build-mode: ${{ matrix.build-mode }}
@@ -60,6 +60,6 @@ jobs:
6060
-Dscan.tag.CodeQL \
6161
classes
6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
63+
uses: github/codeql-action/analyze@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
6464
with:
6565
category: "/language:${{matrix.language}}"

.github/workflows/cross-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
-Dscan.tag.JDK_${{ matrix.jdk.version }} \
7575
build \
7676
--no-configuration-cache #Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
77-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
77+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
7878
if: ${{ always() }}
7979
with:
8080
name: Open Test Reports (${{ github.job }} ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }}))
@@ -117,7 +117,7 @@ jobs:
117117
-Dscan.tag.OpenJ9 \
118118
build \
119119
--no-configuration-cache # Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
120-
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
120+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
121121
if: ${{ always() }}
122122
with:
123123
name: Open Test Reports (${{ github.job }})

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
jacocoRootReport \
4747
--no-configuration-cache # Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318
4848
- name: Upload to Codecov.io
49-
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
49+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
5050
with:
5151
token: ${{ secrets.CODECOV_TOKEN }}
5252

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
4949
# format to the repository Actions tab.
5050
- name: "Upload artifact"
51-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
51+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
5252
with:
5353
name: SARIF file
5454
path: results.sarif
@@ -57,6 +57,6 @@ jobs:
5757
# Upload the results to GitHub's code scanning dashboard (optional).
5858
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
60+
uses: github/codeql-action/upload-sarif@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8
6161
with:
6262
sarif_file: results.sarif

documentation/.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 24.11.1
1+
nodejs 24.12.0

documentation/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: junit
2-
version: null
2+
version: true
33
title: JUnit
44
nav:
55
- modules/ROOT/nav.adoc

documentation/modules/ROOT/pages/advanced-topics/launcher-api.adoc

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ failed can be achieved as follows.
363363

364364
[source,java,indent=0]
365365
----
366-
include::example$java/example/UsingTheLauncherDemo.java[tags=cancellation]
366+
include::example$java/example/UsingTheLauncherDemo.java[tags=cancellation-direct]
367367
----
368368
<1> Create a `{CancellationToken}`
369369
<2> Implement a `{TestExecutionListener}` that calls `cancel()` when a test fails
@@ -387,3 +387,37 @@ At the time of writing, the following test engines support cancellation:
387387
* `{junit-platform-suite-engine}`
388388
* Any `{TestEngine}` extending `{HierarchicalTestEngine}` such as Spock and Cucumber
389389
====
390+
391+
[[launcher-cancellation-execution-request-from-discovery-request]]
392+
=== Building a LauncherExecutionRequest from a LauncherDiscoveryRequest
393+
394+
Rather than building a `{LauncherExecutionRequest}` by starting with a
395+
`{LauncherDiscoveryRequestBuilder}` and calling `forExecution()`, you can create a
396+
`{LauncherExecutionRequestBuilder}` from a previously built `{LauncherDiscoveryRequest}`.
397+
398+
[source,java,indent=0]
399+
----
400+
include::example$java/example/UsingTheLauncherDemo.java[tags=cancellation-discovery-request]
401+
----
402+
<1> Build a `{LauncherDiscoveryRequest}`
403+
<2> Create a `{LauncherExecutionRequestBuilder}` with it
404+
<3> Register the cancellation token
405+
<4> Register the listener
406+
<5> Pass the `{LauncherExecutionRequest}` to `Launcher.execute`
407+
408+
[[launcher-cancellation-execution-request-from-test-plan]]
409+
=== Building a LauncherExecutionRequest from a TestPlan
410+
411+
Alternatively, a `{LauncherExecutionRequestBuilder}` can be created from a previously
412+
discovered `{TestPlan}`.
413+
414+
[source,java,indent=0]
415+
----
416+
include::example$java/example/UsingTheLauncherDemo.java[tags=cancellation-test-plan]
417+
----
418+
<1> Build a `{LauncherDiscoveryRequest}`
419+
<2> Discover a `{TestPlan}` via `Launcher.discover`
420+
<3> Create a `{LauncherExecutionRequestBuilder}` with it
421+
<4> Register the cancellation token
422+
<5> Register the listener
423+
<6> Pass the `{LauncherExecutionRequest}` to `Launcher.execute`

documentation/modules/ROOT/pages/overview.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Overview
2-
:page-aliases: user-guide/index.adoc
2+
:page-aliases: index.adoc, user-guide/index.adoc
33

44
The goal of this document is to provide comprehensive reference documentation for
55
programmers writing tests, extension authors, and engine authors as well as build tool

0 commit comments

Comments
 (0)